当前位置:Gxlcms > 数据库问题 > MongoDB套路

MongoDB套路

时间:2021-07-01 10:21:17 帮助过:18人阅读

所有这些挑战导致了Nosql的诞生,具有以下主要优势

• Availability.
• Fault tolerance.
• Scalability.

关键特性

• They do not use SQL as a query language.
• Most NoSQL databases are designed to run on clusters.
• They operate without a schema, freely adding fields to
the database without having to define any changes in
structure first.
• They are polygot persistent, meaning there are different
ways to store the data based on the requirements.
• They are designed in such a way that they can be
scaled out.

技术图片

 

 MongoDB的特点:

一个记录就是一个文档,是一组键值的集合。

使用文档带来的好处

1在许多编程语言中,一个文档可以对应原生的数据类型

2嵌入式文档有助于减少昂贵的联接

使用BSON

文档数据库使用Json 格式来存储数据,MongoDB使用二进制格式来表示JSON。

MongoDB提供了丰富的查询语言来处理CRUD、聚合、文本搜索。

 

 

 


 

MongoDB套路

标签:聚合   rdb   使用   led   bsp   嵌入式   lang   sed   schema   

人气教程排行