In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
What is NoSQL?
Non-relational database, sometimes referred to as Not Only SQL, is a generic term for database management systems that differ from traditional relational databases.
Advantages of NoSQL
1, high scalability
2. High concurrency, strong reading and writing ability under big data
3. Distributed computing
4. Handling massive data
5. There is no complicated relationship
Four Families of NoSQL Databases
Column Storage: Hbase
Key-Value Storage: Redis
Image storage: Neo4J
Document Storage:MongoDB
MongoDB stores data as a single document, and the data structure consists of key-value (name=>value) pairs. MongoDB documents are similar to JSON objects. Field values can include other documents, arrays, and document arrays.
MongoDB and JSON, BSON
JSON: A syntax for storing and exchanging text information. Similar to XML. JSON database statements can be easily parsed.
BSON: Binary JSON, binary encoded storage format for JSON documents. BSON has data types that JSON does not: Date and BinData. MongoDB documents are stored in BSON form.
MongoDB documents support different data types
{ name:"Jone Doe", title:"software developer", #string address:{ street:"123 45th street" state:"new York" zipcode:10036 }, #Nested Documents expertise:["MongoDB","Python","Javascript"], #Array employee_number:320, #××× location:[53.34,-6326] #Geo-spatial}}
Key features of MongoDB:
1, high performance
2. Rich query language
3. High availability
replica set, automatic failover, data redundancy
4. Horizontal scalability
5. Support multiple storage engines
MMAPv1 Storage Engine: =3.2 Default Storage Engine is WiredTiger
In-Memory Storage Engine: Changed in version 3.2.6
Comparison of storage engines
MongoDB GridFS
GridFS
MongoDB vs. RDBMS data structure logic comparison
MongoDB practical application scenario example
game scene
MongoDB is used to store game user information. Users 'equipment, points, etc. are stored directly in the form of embedded documents for easy query and update.
logistics scenarios
MongoDB is used to store order information. The order status will be updated continuously during the shipping process. It is stored in the form of MongoDB embedded array. All changes to the order can be read out in one query.
social scenes
MongoDB is used to store user information and friends circle information published by users, and realize functions such as nearby people and places through geographical location index.
Internet of Things scenarios
MongoDB is used to store all connected intelligent device information, as well as log information reported by devices, and to analyze these information in multiple dimensions.
video live broadcast
Use MongoDB to store user information, gift information, etc.
MongoDB version selection, version 3.4 is now recommended
MongoDB is divided into enterprise edition and community edition. The community edition supports MongoDB ops manager.
How to use MongoDB
If there is 1 Yes above, you can consider MongoDB, 2 or more Yes, choose MongoDB will never regret!!!
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.