The first sight of mongodb
Recently found that mongodb this nosql is very popular, their own simple study, send something out, we can discuss.
MongoDB is written in C++ language and is an open source database system based on distributed file storage.
In the case of high load, adding more nodes can ensure server performance.
MongoDB aims to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB stores the data as a document, and the data structure consists of key-value (key= > value) pairs. MongoDB documents are similar to JSON objects. Field values can contain other documents, arrays
And the document array.
About the study of mongodb, recommend the following address, take a look, basically understand 80% of mongodb
Http://www.runoob.com/mongodb/mongodb-mongostat-mongotop.html
After feeling:
Mongodb is indeed very powerful, the most surprising is the built-in mongodb replication function, that is, the replica set function, one master, one slave or one master and multiple slaves, completely self-contained host and standby.
The sharding function is also very powerful, which is equivalent to its own distributed storage mode, so there is no need to worry about the shortage of database space. Expand the database cluster horizontally and add chips dynamically, which is much cheaper than adding vertically, and it is convenient and fast.