当前位置:网站首页>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
边栏推荐
- Bit. Store: long bear market, stable stacking products may become the main theme
- CSDN 技能樹使用體驗與產品分析(1)
- UE4随笔:FString、FName 与 FText
- 花了6个月时间完成本科优秀毕业设计,我做了什么?
- 蓄力中台,用友iuap筑牢社会级企业数智化新底座
- Structs in trust
- SQL reported an unusual error, which confused the new interns
- Rust advanced ownership - memory management
- Massive data attended the Lanzhou opengauss meetup (ECOLOGICAL NATIONAL trip) activity, enabling users to upgrade their applications with enterprise level databases
- Pyhton crawls Baidu library text and writes it into word document
猜你喜欢
Bit. Store: long bear market, stable stacking products may become the main theme
可观测,才可靠:云上自动化运维CloudOps系列沙龙 第一弹
Univision hyperinsight: Nuggets' $16.494 billion "gold hoe" in the observable market?
数据库事务
Oracle 架构汇总
#夏日挑战赛# OpenHarmony HiSysEvent打点调用实践(L2)
muduo
Linux系统ORACLE 19C OEM监控管理
CSDN skill tree experience and product analysis (1)
MySQL beginner benefits
随机推荐
回溯相关问题
muduo
Graylog 新一代日志收集预警系统安装配置
Record a failure caused by a custom redis distributed lock
Batch insert data using MySQL bulkloader
Common shell script commands (III)
Ble Bluetooth module nrf518/nrf281/nrf528/nrf284 chip scheme comparison
Postman Chinese tutorial (postman Chinese version)
一段时间没用思源,升级到最新的 24 版后反复显示数据加密问题
键入网址到网页显示,期间发生了什么?
#夏日挑战赛# OpenHarmony HiSysEvent打点调用实践(L2)
Web APls 阶段——第十四节——本地存储
[数组]BM99 顺时针旋转矩阵-简单
CSDN skill tree experience and product analysis (1)
Csdn Skills Tree use Experience and Product Analysis (1)
Massive data attended the Lanzhou opengauss meetup (ECOLOGICAL NATIONAL trip) activity, enabling users to upgrade their applications with enterprise level databases
移动低代码开发专题月 | 可视化开发 一键生成专业级源码
OpenSSL client programming: SSL session failure caused by an obscure function
ABAP随笔-通过api获取新冠数据
On the drawing skills of my writing career