Photo excerpt from Chen Yanming 2012.5 "10 days Master Mongdb"
Features of MongoDB
---> Collection-oriented storage for easy storage of object-type data
---> Mode freedom
---> Support dynamic Query
---> Support full index, including internal objects
---> Support enquiry
---> Support for replication and failure recovery
---> Use efficient binary data storage, including large objects (such as video, etc.)
---> Automatically process fragmentation to support scalability at the cloud level
---> Supports Python,php,ruby,java,c,c#,javascript,perl and C + + language drivers, and drivers for Erlang and. NET platforms are also available in the community.
---> File storage format BSON (an extension of JSON)
---> Accessible via the Internet
Features of MongoDB
----> Collection-oriented storage: data for storing objects and JSON forms
----> Dynamic query: MongoDB supports rich query expressions. Query directives use a JSON-style tag to easily
Querying objects and arrays embedded in a document
----> Full index Support: Includes embedded objects and arrays in the document. The query optimizer of MongoDB parses query representations
and generate an efficient query plan
----> Query monitoring: MongoDB contains a series of monitoring tools for analyzing the performance of database operations
----> Replication and automatic failover: The MongoDB database supports data replication between servers and supports replication between master-slave mode and server. The primary goal of replication is to provide redundancy and automatic failover
----> Efficient traditional storage: support for binary data and large objects (such as photos or pictures)
----> Auto-sharding to support cloud-scale scalability: Automatic sharding supports level DB clusters, adding additional machines dynamically
For MongoDB applications
---> Website data: MongoDB is ideal for real-time insertions, updates and queries, as well as the replication and high scalability required for real-time data storage on the Web
---> Caching: Because of its high performance, MongoDB is also suitable as a caching layer for the information infrastructure. After a system restart, the persistent cache layer built by MongoDB avoids overloading the underlying data source
---> Large, low-value data: it can be expensive to store some data using a traditional relational database, and many times programmers often choose traditional files for storage.
---> Highly scalable scenario: MongoDB is ideal for databases consisting of dozens of or hundreds of servers. MongoDB's roadmap already includes built-in support for the MapReduce engine
---> Storage for objects and JSON data: MongoDB's BSON data format is ideal for storing and querying in document formats
About MongoDB
---->mongo DB is a non-relational database (NOSQL) that is currently very popular in the IT industry, and its flexible data storage methods are favored by current it practitioners.
---->mongo db is a good way to implement object-oriented thinking (Oo thought), in Mongo db each record is a document object. The biggest advantage of Mongo DB is that all data persistence requires no developers to write SQL statements manually, and it is easy to invoke methods to implement CRUD operations.
Data structure of MOGODB
Data types for Mogodb
MongoDB Basic Data type
MongoDB Array
MongoDB Data Nesting
MongoDB's Objectid
MongoDB modifier
MongoDB's other
MongoDB recognize find
MongoDB Query condition operator
Regular expression application of mongdb
Learn MongoDB (i)