mongodb优势
Having seen the good features of MongoDB, now every developer should be able to understand why it is better to use NoSQL based database for big data transactions and for implementing a scalable model. Now, its time to leave behind the schema definitions of RDBMS and get an advantage of using schema-less databases like MongoDB. Let us see some of the vital advantages of MongoDB :
看到了MongoDB的良好功能之后,现在每个开发人员都应该能够理解为什么将基于NoSQL的数据库用于大数据事务和实现可伸缩模型更好。 现在,该抛弃RDBMS的模式定义,并获得使用像MongoDB这样的无模式数据库的优势了。 让我们看看MongoDB的一些重要优势:
First and foremost, it is very easy to install and setup the MongoDB.
首先,非常容易安装和设置MongoDB。
The very basic feature of MongoDB is that it is a schema-less database. No schema migrations anymore. Since MongoDB is schema-free, your code defines your schema.
MongoDB的最基本功能是它是一个无模式的数据库。 不再有架构迁移。 由于MongoDB是无架构的,因此您的代码定义了架构。
The ability to derive a document-based data model is one of the most attractive advantages of MongoDB. Because, the way it stores the data in the form of BSON (Binary JSON), ruby hashes etc, helps to store the data in a very rich way while being capable of holding arrays and other documents.
导出基于文档的数据模型的能力是MongoDB最具吸引力的优势之一。 因为,它以BSON(二进制JSON),Ruby哈希等形式存储数据的方式有助于以非常丰富的方式存储数据,同时能够保存数组和其他文档。
The document query language supported by MongoDB plays a vital role in supporting dynamic queries.
MongoDB支持的文档查询语言在支持动态查询中起着至关重要的作用。
Very easy to scale.
非常容易扩展。
Due to the structuring (BSON format - key value pair) way of the data in MongoDB, no complex joins are needed.
由于MongoDB中数据的结构化(BSON格式-键值对)方式,因此不需要复杂的联接。
Performance tuning is absolutely easy compared to any relational databases.
与任何关系数据库相比,性能调整绝对容易。
No need of mapping the application objects to the data objects.
无需将应用程序对象映射到数据对象。
Enables faster access of the data due to its nature of using the internal memory for the storage.
由于使用内部存储器进行存储,因此可以更快地访问数据。
Since, it is a NOSQL database, then it is obviously secure because no sql injection can be made.
由于它是一个NOSQL数据库,因此显然很安全,因为无法进行SQL注入。
MongoDB can also be used as a file system, which helps in easier way of load balancing.
MongoDB也可以用作文件系统,这有助于更轻松地实现负载平衡。
MongoDB supports, the search by regex and fields as well.
MongoDB也支持正则表达式和字段搜索。
MongoDB can be run as windows service as well.
MongoDB也可以作为Windows服务运行。
Good amount of documentation is available.
提供了大量文档。
MongoDB does not require a VM to be run.
MongoDB不需要运行VM。
MongoDB follows regular release cycle of its newer versions.
MongoDB遵循其新版本的定期发布周期。
The support for Sharding is one of its key feature. Sharding is the process of storing the data in different machines and MongoDB's ability to process the data, as and when the size of the data grows. This results in the horizontal scaling. With sharding, more amount of data can be written and read back as and when there is an increase in the data growth.
对分片的支持是其主要功能之一。 分片是将数据存储在不同机器中的过程,也是MongoDB在数据大小增长时处理数据的能力。 这导致水平缩放。 通过分片,可以在数据增长增加时读写更多的数据。
翻译自: https://www.studytonight.com/mongodb/advantages-of-mongodb
mongodb优势