当前位置:网站首页>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
边栏推荐
- GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
- Mysql-数据丢失,分析binlog日志文件
- Some common software related
- Redis configuration and optimization of NoSQL
- Gpt-3 is a peer review online when it has been submitted for its own research
- Kalman filter-1
- MySQL data loss, analyze binlog log file
- Free PHP online decryption tool source code v1.2
- 杭州电 3711 Binary Number
- Hisilicon 3559 universal platform construction: RTSP real-time playback support
猜你喜欢
Antd Comment 递归循环评论
Class常量池与运行时常量池
On file uploading of network security
【写给初发论文的人】撰写综述性科技论文常见问题
维护万星开源向量数据库是什么体验
机械臂速成小指南(十):可达工作空间
Probability formula
Leetcode: interview question 17.24 Maximum cumulative sum of submatrix (to be studied)
[security attack and Defense] how much do you know about serialization and deserialization?
如何检测mysql代码运行是否出现死锁+binlog查看
随机推荐
史上最全MongoDB之部署篇
The JSON format of the international area code of the mobile phone number is obtained with PHP
Restore backup data on GCS with tidb lightning
2022夏每日一题(一)
【mysql】mysql中行排序
Redis源码学习(31),字典学习,dict.c(一)
Using thread class and runnable interface to realize the difference between multithreading
Binary, octal, hexadecimal
termux设置电脑连接手机。(敲打命令贼快),手机termux端口8022
使用Thread类和Runnable接口实现多线程的区别
什么是 CGI,什么是 IIS,什么是VPS「建议收藏」
Implementation of binary search tree
Triple half circle progress bar, you can use it directly
Learn how to use js to merge two objects into one object assign()
Antd comment recursive loop comment
太方便了,钉钉上就可完成代码发布审批啦!
Mobile measurement and depth link platform - Branch
On file uploading of network security
2022电工杯A题高比例风电电力系统储能运行及配置分析思路
[development software] tilipa Developer Software