当前位置:网站首页>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
边栏推荐
- Summary of submarine cable detection technology
- Linux system plays Oracle database multi table query connection query with a smile
- 回溯相关问题
- 【STL编程】【竞赛常用】【part 3】
- Univision hyperinsight: Nuggets' $16.494 billion "gold hoe" in the observable market?
- 智联招聘的基于 Nebula Graph 的推荐实践分享
- 海量数据出席兰州openGauss Meetup(生态全国行)活动,以企业级数据库赋能用户应用升级
- muduo
- 数智化进入“深水区”,数据治理是关键
- Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
猜你喜欢

MongoDB简介及典型应用场景

键入网址到网页显示,期间发生了什么?

数仓的字符截取三胞胎:substrb、substr、substring

Pointers and structs

低代码开发平台是什么?为什么现在那么火?

#夏日挑战赛# OpenHarmony HiSysEvent打点调用实践(L2)

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

元宇宙虚拟数字人离我们更近了|华锐互动

Massive data attended the Lanzhou opengauss meetup (ECOLOGICAL NATIONAL trip) activity, enabling users to upgrade their applications with enterprise level databases

Database index
随机推荐
[help] troubleshooting of JVM's high CPU resource consumption
qt中文乱码
元宇宙虚拟数字人离我们更近了|华锐互动
Database transactions
MASS幸运哈希游戏系统开发丨冲突解决方法(代码分析)
Logcli-loki 命令行工具
【STL编程】【竞赛常用】【part 1】
Graylog 新一代日志收集预警系统安装配置
使用MySqlBulkLoader批量插入数据
1028 List Sorting
Web APls 阶段——第十四节——本地存储
CocosCreator播放音频并同步进度
CSDN 技能树使用体验与产品分析(1)
Redis持久化
Binary tree related problems 2
SQL reported an unusual error, which confused the new interns
从指令交读掌握函数调用堆栈详细过程
Database index
MySQL beginner benefits
Structs in trust
