Introduction to MongoDB and addition, deletion, modification, and query
I. Introduction
MongoDB is written in C ++ and is an open source database system based on distributed file storage. MongoDB is designed to provide scalable, high-performance
In the four CRUD operations, a record or document is obtained from the collection of mongodb databases. For non-DBAs, query is the most used. Therefore, if you have learned the query, it will be of great help for us to better operate the database in
Insert Document: Insert () method
To insert data into the MongoDB collection, you need to use the MongoDB Insert () or Save () method.
Grammar:
The basic syntax for the Insert () command is as follows:
>db. Collection_name.insert
First, the index introductionIn MongoDB, indexes are used to support efficient queries. If there is no index, MONGODB must scan each document in the entire collection to find a matching document. However, if an appropriate index is established,
Transferred from: http://www.cnblogs.com/cswuyg/p/4355948.html1. Count Statistics result errorThis is because the distributed cluster is migrating data, which results in a count result value error and requires the use of aggregate pipeline to obtain
/*** MongoDB $type operator*/
/*** The $type operator is based on the Bson type to retrieve the matching data type in the collection and returns the result.* The types of MongoDB that can be used are shown in the following table:* Type Number Notes*
Brief introduction
MongoDB is a NoSQL database based on distributed file storage
Written by the C + + language, stable and high performance
Designed to deliver scalable, high-performance data storage solutions for WEB applications
About MongoDBMongoDB is lighter and more flexible than some relational databases, and is ideal for use in situations where data is large and transactional is not strong. It is also an object database with no concepts such as tables, rows, or fixed
MongoDB collection document creation, modification, deletion, and query command summary, mongodb modification and Deletion
Install mongodb in windows. Start it. Previous Article: mongoDB Installation Details
1. log on to view the collection
A.MongoDB features, features, usage scenariosMongoDB Installation and ConfigurationMongoDB ArchitectureDatabase start, stop, connectJson/bson data formatMongodb1. FeaturesData is in memory, written to disk through a background threadNon-modal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.