MongoDB is a cross-platform, document-oriented database. Can achieve high performance, high availability, and can be easily extended. It is an open source database system based on distributed file storage. Under high load conditions, adding more nodes can ensure server performance.
MongoDB is also a product between relational and non-relational databases. It is the most versatile and most like relational database among non-relational databases. The main reason for not adopting the relational model is to obtain better scalability. MongoDB no longer has the concept of'row', and its operation mode is mainly based on two concepts: collection and document.
1.2: Features
Including collection-oriented storage, model freedom, rich query statements and multi-level indexes, replication set mechanism, easy horizontal expansion, pluggable storage engine, cross-platform multi-language support, etc.
Simple to install, provides document-oriented storage function, easier to operate
Provides replication, high availability, and automatic sharding functions. If the load increases (more storage space and stronger processing power are required), it can be distributed on other nodes in the computer network, which is called sharding
Support rich query expressions. The query command uses JSON format tags, which can easily query the embedded objects and arrays in the document
Support various programming languages: Puby, Python, Java, C++, PHP, C# and other languages
1.3: Applicable scenarios
MongoDB can provide scalable and high-performance data storage solutions for web applications. MongoDB is mainly used in website data, distributed scenarios, data caching, and JSON document format storage. It is suitable for Internet applications with large data volume, high concurrency, and multi-tasking. Its built-in horizontal expansion mechanism provides data processing capabilities ranging from several million to one billion, which can well meet the requirements of Web2.0 and mobile Internet applications. Claim