MongoDB's study [A]: Acquaintance Mongo, the road all the way long, endless

What is NoSQL

Not only SQL NoSQL is the acronym, it refers to a non-relational database, based on the presence of key-value storage structures, and traditional relational databases, but it follows the SQL standard, and ACID properties, table structure and many more. Features are: non-relational, distributed, open source, scalable level. Development Status of NoSQL 
present, the site is being applied NoSQL there are many, such as Sina Weibo, Youku operational data analysis, watercress, etc., have to use NoSQL data. Why use NoSQL database 
with the continuous development of the Internet, various types of applications emerging, especially in the era of cloud computing, technology made more demands. Although relational databases in the industry has been flourish, however, the limitations of its own, at some point, or difficult to meet these needs: Extended difficulty reading and writing slow, high cost, limited support capacity. The point of interest in NoSQL data storage and high concurrent read-write mass data, etc., compared with relational databases, they do the "subtraction" in architecture and data model, and do in expanding and concurrency the "addition."






Pros and cons of NoSQL databases

In the advantage regard, the following points: 
1, simple extension 
2, fast read and write 
3, low cost 
4, flexible data model inadequate aspects, the following points: 
1, does not provide support for SQL 
2, feature rich enough to support 
3, existing products are not mature enough

Understanding MongoDB

MongoDB is a product with function between relational and relational databases Philippines, non-relational database, most feature-rich, database, relational database, like most, JS query syntax is somewhat similar to object-oriented (Many times, you can follow Js syntax related operations), it is a set-oriented, free model document database. 

MongoDB is composed of a set of 
data to be stored are grouped in a set of data, each set in the database has a unique identification name, and the document can contain an unlimited data. Set of concepts similar to a relational database table, except that it does not need to define any pattern. Free mode 
MongoDB no concept of the collection of columns and rows, the following two sets can be stored in the same the collection 
{ "name": "mongo"} 
{ "of the type": "db"} document type 
data stored by us all type of the key-value exists, the key is a string, the value may be any type, and comprising an array of documents, each corresponding to each of the rows in the relational database.





MongoDB features

MG is characterized by high performance, easy to deploy, easy to use, very convenient to store data, the main features are: 
1, for a set of storage, is easy to store the object data type 
2, consisting of pattern 
3, support for dynamic queries 
4, supports fully indexed, comprising internal object 
5, to support replication and failover 
6, using an efficient binary data storage, including large objects (e.g., video) 
7, automatic processing debris, to support scalable cloud level 
8, file storage format BSON ( Json extension), can not be destroyed

MongoDB applicable scene

1, persistent buffer layer 
2, an efficient real-time 
3, for storing data objects and JSON 
4, high stretchability scene 
5, large-size, low-value data storage

MongoDB NA scene

1, requires highly transactional system 
2, the traditional business intelligence applications 
3, complex multi-table queries
Published 59 original articles · won praise 2 · Views 5587

Guess you like

Origin blog.csdn.net/LDR1109/article/details/100943237