当前位置:网站首页>Mongodb introduction and typical application scenarios
Mongodb introduction and typical application scenarios
2022-06-27 20:27:00 【Ink Sky Wheel】


What is? NoSQL
NoSQL:Not Only SQL , In essence, it is also a database technology , Compared with traditional database technology , It doesn't follow some constraints , such as :sql standard 、ACID attribute , Table structure, etc .
advantage
1 Meet the high concurrency of reading and writing to the database
2 Efficient storage and access to massive data
3 High scalability and high availability for database
4 Flexible data structure , To meet the scenario that the data structure is not fixed
shortcoming
1 Transactions are generally not supported
2 The implementation is complex SQL The query is complicated
3 The data maintenance threshold of operation and maintenance personnel is high
4 At present, it is not the mainstream database technology
classification

Mongodb Basic concepts
What is? MongoDB
MongoDB: It's a database , High performance 、 Modeless 、 Documentation , at present nosql The hottest database in , Open source products , be based on c++ Development . yes nosql The most functional database , Most like a relational database nosql db.
characteristic :
1 Collection oriented document storage : Suitable for storing Bson(json An extension of ) Data in form ;
2 Free form , Data format is not fixed , Modifying the structure in the production environment can not affect the program operation ;
3 Powerful query statements , Object oriented query language , Basic coverage sql All language skills ;
4 Full index support , Support query plan ;
5 Support replication and automatic failover ;
6 Support binary data and large objects ( file ) Efficient storage ;
7 Use fragmented clusters to improve system scalability ;
8 Use the memory mapped storage engine , Put the disk IO The operation is converted into a memory operation ;
MongoDB Basic concepts

MongoDB Concept and RDMS Conceptual contrast

MongoDB Application scenarios
There is no business scenario that has to be used MongoDB Can solve , But use MongoDB It usually allows you to solve problems at a lower cost ( Including learning 、 Development 、 Operation and maintenance costs )

MongoDB Our application has penetrated into various fields , Such as game 、 logistics 、 Online retailers 、 Content management 、 social contact 、 The Internet of things 、 Live video, etc , Here are a few practical application cases :
1 Game scenario , Use MongoDB Store game user information , User's equipment 、 Integration and so on are directly stored in the form of embedded documents , Convenient query 、 to update
2 Logistics scenario , Use MongoDB Store order information , The order status will be updated during shipment , With MongoDB In the form of an embedded array to store , One query can read all the changes of the order .
3 Social scene , Use MongoDB Store and store user information , As well as the user's published circle of friends information , By geolocation index to achieve people around 、 Location and other functions
4 Internet of things scenario , Use MongoDB Store all the connected smart device information , And the log information reported by the equipment , And the multi-dimensional analysis of these information
5 Live video , Use MongoDB Store user information 、 Gift information
What scenes can't be used MongoDB?
1 Highly transactional systems : For example, banks 、 Financial system .MongoDB Weak support for things ;
2 Traditional business intelligence applications : Data analysis for specific problems , Multi data entity Association , It involves complex 、 Highly optimized query method ;
3 Use sql When it's convenient ; The data structure is relatively fixed , Use sql When it is more convenient to make query and statistics ;

Recommended reading
( Click on the title to jump to read )
| 5 Playframework Detailed explanation of environment construction and operation |
| 6 Scala Summary of set operations in functional programming |
| 7 Explain profound theories in simple language WSL2 Installation and docker Installation practice |
| 8 WSL2 Installation practice - Summary of core problem solving |
| 9 【python】 Code specification principles -Python Zen is complex |
| 10 Scala- The golden language of the big data era |
Scan QR code
Get more
Long press the picture to follow




Order one

Looking at
You'd better see
边栏推荐
- Linux system plays Oracle database multi table query connection query with a smile
- ABAP essays - interview memories hope that everyone's demand will not increase and the number of people will soar
- 海量数据出席兰州openGauss Meetup(生态全国行)活动,以企业级数据库赋能用户应用升级
- Enumeration and control flow operation in rust
- Logcli-loki 命令行工具
- Crontab's learning essays
- Source code analysis of golang map concurrent read / write problem
- Paste source layer and history layer of data warehouse system
- 数据库优化
- 一场分销裂变活动,不止是发发朋友圈这么简单
猜你喜欢

数据库索引

Wechat IOS version 8.0.24 update release cache subdivision cleaning Online

Postman Chinese tutorial (postman Chinese version)

SQL Server - window function - solve the problem of filtering consecutive n records

【精品必读】Linux系统Oracle数据库趣解子查询

Type the URL to the web page display. What happened during this period?

CSDN skill tree experience and product analysis (1)

CocosCreator播放音频并同步进度

Installation and configuration of grayog new generation log collection early warning system

Data intelligence enters the "deep water area", and data governance is the key
随机推荐
1025 PAT Ranking
Univision hyperinsight: Nuggets' $16.494 billion "gold hoe" in the observable market?
Database lock problem
openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
Database log
安全才是硬道理,沃尔沃XC40 RECHARGE
Pyhton crawls Baidu library text and writes it into word document
【debug】平台工程接口调试
Csdn Skills Tree use Experience and Product Analysis (1)
Paste source layer and history layer of data warehouse system
Redis cluster Series II
Hash table - Review
Hanoi Tower problem
元宇宙虚拟数字人离我们更近了|华锐互动
Manage rust project through cargo
#yyds干货盘点#SQL 子查询
linux系统笑着玩Oracle数据库多表查询-连接查询
二叉树相关问题2
从指令交读掌握函数调用堆栈详细过程
数据库日志
