当前位置:网站首页>The first introduction of the most complete mongodb in history
The first introduction of the most complete mongodb in history
2022-07-07 04:05:00 【janyxe】
MongoDB List of articles
If this article is helpful to your development path , Please give me a compliment , Your support is my motivation to stick to blogging
Preface
This series of courses will take you in the form of face-to-face test questions Go deep into distributed topics MongoDB. This article takes you to know for the first time MongoDB
What is? MongoDB
- MongoDB It's based on Distributed file storage The database of . from C++ Language writing .
- The supporting data structure is very loose , The data format is BSON
- Support dynamic query
- Support for replication and recovery
- Support Golang,RUBY,PYTHON,JAVA,C++,PHP,C# multilingual
BSON(binary json) And JSON The difference between
- Binary JSON , and JSON It also supports embedded document objects and array objects , Therefore, more complex data types can be stored
- BSON Faster traversal speed
- BSON It's easier to operate
- BSON Added additional data types
MongoDB Version history
- 2012 year 05 month 23 Japan ,MongoDB2.1 The development branch has released ! This version uses a new architecture , There are many enhancements .
- 2012 year 06 month 06 Japan ,MongoDB 2.0.6 Release , Distributed document database .
- 2013 year 04 month 23 Japan ,MongoDB 2.4.3 Release , This release includes some performance optimizations , Enhancements and bug Repair .
- 2013 year 08 month 20 Japan ,MongoDB 2.4.6 Release .
- 2013 year 11 month 01 Japan ,MongoDB 2.4.8 Release .
- 2017 year 03 month 17 Japan ,MongoDB 3.0.1 Release .
- 2018 year 08 month 06 Japan ,MongoDB 4.0.2 Release , Support multiple document transactions .
- 2019 year 08 month 13 Japan ,MongoDB 4.2.0 Release , Introduce distributed transactions .
MongoDB With relational databases (RDBMS) contrast
Common ground
Relational database (RDBMS) | MongoDB |
---|---|
database (database) | database (database) |
surface (table) | aggregate (collection) |
That's ok (row) | file (document) |
Column (column) | Field (field) |
Indexes (index) | Indexes (index) |
Primary key (primary key) | _id( Field ) |
View (view) | View (view) |
Table links (table join) | Aggregation operation ($lookup) |
Difference
- MongoDB have Semi structured characteristic . No field declaration is required , And the fields in the set do not need to be exactly the same
- MongoDB No foreign key constraints , Table connection requires the use of aggregate Pipeline Technology ($lookup) Realization
MongoDB Explanation of the name
Noun | explain |
---|---|
database (database) | It can be understood as a logical namespace , A database contains multiple collections with different names |
aggregate (collection) | amount to * Relational database (RDBMS)* In the table |
file (document) | A document is equivalent to a row in a data table , It consists of several different fields |
Field (field) | An attribute in the document , Equate to Relational database (RDBMS) Of Column (column) |
Indexes (index) | Independent retrieval data structure , And SQL Consistent concept |
_id | Each document has a unique id Field |
View (view) | Virtual ( It's not real ) aggregate , And SQL The view in is similar to , It is realized through polymerization pipeline technology |
Aggregation operation ($lookup) | Used to implement " similar " Table joins (tablejoin) The aggregation operator for |
MongoDB Advantages over other databases
- Document storage
MongoDB use BSON/JSON Documents store data - High scalability and high availability
MongoDB Support data fragmentation , Replication sets provide 99.999% High availability - Easy to query
JSON The structure is close to the object model , Low amount of development code - High safety
MongoDB The query generated by the client is BSON object , To reduce the SQL Danger of injected attack
边栏推荐
- Using thread class and runnable interface to realize the difference between multithreading
- 【编码字体系列】OpenDyslexic字体
- Redis source code learning (31), dictionary learning, dict.c (1)
- 运算放大器应用汇总1
- NoSQL之Redis配置与优化
- What is Ba? How about Ba? What is the relationship between Ba and Bi?
- Create commonly used shortcut icons at the top of the ad interface (menu bar)
- 本机mysql
- 使用 Dumpling 备份 TiDB 集群数据到 GCS
- 如何编写一个程序猿另一个面试官眼前一亮的简历[通俗易懂]
猜你喜欢
ABAP 動態內錶分組循環
浅谈网络安全之文件上传
Hisilicon 3559 universal platform construction: RTSP real-time playback support
opencv第三方库
Calculation of time and space complexity (notes of runners)
ABAP dynamic inner table grouping cycle
AVL树插入操作与验证操作的简单实现
数据的存储
Operational amplifier application summary 1
1.19.11.SQL客户端、启动SQL客户端、执行SQL查询、环境配置文件、重启策略、自定义函数(User-defined Functions)、构造函数参数
随机推荐
史上最全MongoDB之安全认证
MySQL data loss, analyze binlog log file
tflite模型转换和量化
HW notes (II)
2022年电工杯B 题 5G 网络环境下应急物资配送问题思路分析
二叉搜索树的实现
【安全攻防】序列化与反序列,你了解多少?
史上最全学习率调整策略lr_scheduler
Termux set up the computer to connect to the mobile phone. (knock the command quickly), mobile phone termux port 8022
Operational amplifier application summary 1
Free PHP online decryption tool source code v1.2
Storage of data
Kotlin Android environment construction
PHP lightweight Movie Video Search Player source code
Kalman filter-1
POJ培训计划2253_Frogger(最短/floyd)
二进制、八进制、十六进制
opencv第三方库
ggplot 分面的细节调整汇总
Gpt-3 is a peer review online when it has been submitted for its own research