mongo数据库插入数据_深入研究Mongo数据库

我不是女神ヾ 2023-03-05 12:54 134阅读 0赞

mongo数据库插入数据

More popularly known as “mongoDB”. It is a no-sql based database.

俗称“ mongoDB” 。 这是一个基于无SQL的数据库。

BASIC STRUCTURE OF MONGO DB

MONGO DB的基本结构

MongoDB structure

A COLLECTION IN MONGODB having 3 DOCUMENTS

MONGODB中有3个文档的集合

MongoDB structure

ADVANTAGES OF MONGODB OVER SQL BASED DBS

MONGODB在基于SQL的DBS上的优势

  • Flexibility

    灵活性

    In comparison to a SQL based database, MongoDB is far more flexible.

    与基于SQL的数据库相比,MongoDB更加灵活。

    First, it supports a much wider array of datatypes. Secondly, unlike SQL based database which are composed of tables and columns it is based on JSON( Javascript Object Notation). MongoDB is of a graph like pdf format. Thus, within a collection, each document can have different schema/data model making MongoDB very flexible and less opinionated.

    首先,它支持更广泛的数据类型。 其次,与由表和列组成的基于SQL的数据库不同,它基于JSON(JavaScript对象表示法)。 MongoDB具有pdf格式的图形。 因此,在一个集合中,每个文档可以具有不同的架构/数据模型,从而使MongoDB非常灵活且无拘无束。

  • Availability

    可用性

    MongoDB makes more than one replicas of the primary database. Thus storing the same data at multiple locations. So, that traffic gets divided between multiple locations, therefore, ensuring fast retrieval of data even in cases of a large number of transactions.

    MongoDB制作主数据库的多个副本。 因此,将相同的数据存储在多个位置。 因此,该流量会在多个位置之间分配,因此即使在大量事务的情况下也可确保快速检索数据。

  • Readability

    可读性

    Computers parse data in MongoDB which is in JSON format at a much higher rate as compared to SQL- based database. Moreover for even human beings data in MongoDB is much more readable rather than tedious tables and columns used in SQL DBS.

    与基于SQL的数据库相比,计算机以JSON格式解析MongoDB中的数据的速率要高得多。 而且,对于人类来说,MongoDB中的数据比SQL DBS中使用的繁琐的表和列更具可读性。

蒙古罗盘 (MONGODB COMPASS)

It is a software developed by MongoDB enterprise which provides a user interface for viewing our mongo database. It also supports CRUD operations, Querying of our database. Also enables the filtering of data in the database via equality, inequality and geospatial filters. It even provides an analytical summary of data in each collection.

它是由MongoDB企业开发的软件,提供用于查看我们的mongo数据库的用户界面。 它还支持CRUD操作,数据库查询。 还可以通过相等,不相等和地理空间过滤器来过滤数据库中的数据。 它甚至提供每个集合中数据的分析摘要。

MONGODB SHELL (MONGODB SHELL)

  • Provides all the functionality provided by mongo compass.

    提供mongo罗盘提供的所有功能。

  • The difference is that it is not GUI tool rather it is an interpreter wherein user writes commands.

    区别在于它不是GUI工具,而是用户在其中编写命令的解释器。

  • Based JavaScript programming language.

    基于JavaScript的编程语言 。

翻译自: https://www.includehelp.com/mongodb/a-deep-dive-into-mongo-database.aspx

mongo数据库插入数据

发表评论

表情:
评论列表 (有 0 条评论,134人围观)

还没有评论,来说两句吧...

相关阅读