In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you the characteristics and architecture of MongoDB example analysis, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to understand it!
1.1 what is MongoDB
MongoDB is a cross-platform, document-oriented database, which is one of the most popular NoSQL database products. It is between the relational database and the non-relational database. It is the most functional product in the non-relational database and most similar to the relational database. It supports a very loose data structure, which is similar to JSON's BSON format, so it can store more complex data types.
The official website address of MongoDB is: http://www.mongodb.org/
1.2 MongoDB featur
The most important feature of MongoDB is that the query language it supports is very powerful, and its syntax is somewhat similar to the object-oriented query language. It can almost achieve most of the functions similar to the single table query of relational database, and also supports the establishment of data indexing. It is a collection-oriented, schema-free document database.
The specific features are summarized as follows:
(1) for collection storage, it is easy to store data of object type.
(2) Mode freedom.
(3) support dynamic query
(4) full indexing is supported, including internal objects
(5) support replication and failure recovery
(6) use efficient binary data storage, including large objects (such as video, etc.)
(7) automatically handle fragments to support scalability at the cloud computing level
(8) drivers that support Python,PHP,Ruby,Java,C,C#,Javascript,Perl and C++, and drivers for Erlang and .NET platforms are also available in the community.
(9) File storage format is BSON (an extension of JSON)
1.3 MongoDB architecture
The logical structure of MongoDB is a hierarchical structure. Mainly by:
Document (document), collection (collection), database (database) of these three parts. The logical structure is user-oriented, and users use the logical structure to develop applications using MongoDB.
(1) the document (document) of MongoDB is equivalent to a row of records in a relational database.
(2) multiple documents form a collection, which is equivalent to the tables of a relational database.
(3) multiple collections (collection), logically organized together, is the database (database).
(4) one MongoDB instance supports multiple databases (database).
The hierarchical structure of documents (document), collections (collection), and databases (database) is shown below:
The following table shows a comparison of the concepts of logical structure between MongoDB and MySQL databases
The above is all the content of the article "sample Analysis of MongoDB Features and Architecture". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.