MongoDB 6.0 arrives with improvements, new features and more

After a year of development the release of the new version of MongoDB 6.0 was announced, in which the announcement mentions that the most notable changes in this version include improvements in time series, new functionality and performance improvements for changing flows, among other things.

For those unaware of MongoDB, they should know that this is a database that supports storing documents in a JSON-like format, has a fairly flexible language for generating queries, can create indexes for various stored attributes, provides efficient storage of binary large objects, supports logging of operations to change and add data to the database, can work according to the Map/ paradigm Reduce, support replication, and build fault-tolerant configurations.

Main new features of MongoDB 6.0

In this new version of MongoDB 6.0 that is presented, the ability to run queries that cover data stored in encrypted form (Queryable Encryption). The data are decrypted by the user and remain encrypted during the processing of the request (the request is made on encrypted data, without decrypting it first).

In its current form, only comparison expressions are allowed in queries, but it is planned to add support for checking ranges, prefixes, suffixes, substrings, and other operations in the future.

Another of the changes that stands out in this new version of MongoDB 6.0 is that expanded the possibilities associated with data storage in the form of time series (time series collections), which are optimized to store portions of parameter values ​​recorded in certain time intervals (time and a set of values ​​corresponding to this time), for example, the need arises to store such data in monitoring systems , financial platforms, systems to poll the states of the sensors.

The new version offers the ability to use secondary and composite indexes with data collections in the form of time series.

On the other hand, it also highlights the new tools for change tracking (“change streams”, API Change Streams), with the help of which you can organize the sending of notifications to applications about data changes in the database. Changes are reported in real time and allow you to build applications using reactive and event-driven programming techniques. Events are processed using the watch method; if necessary, events can be filtered and aggregated with the $match, $project, and $redact operators. The new version offers the possibility to obtain the before and after status of the document (for example, when the document is deleted or changed). In addition to data manipulation language (DML) operations, it provides support for DDL operations (data definition language), such as creating and deleting indexes and collections.

In addition to that, I also know that the $lookup and $graphlookup operators are fully supported for chunked storage. The performance of the operation $lookup has been optimized, for example, when there is an index on a foreign key, matching a small number of documents is now 5-10 times faster and a large number is twice as fast. For assignments without using indexes, the performance gain can be up to 100x.

Of the other changes that stand out from this new version:

  • The ability to run complex analytic queries on consistent slices (snapshots) of the production data state is provided.
  • Analytic queries like this can span multiple shards in large distributed MongoDB setups.
  • Added new $maxN, $minN, and $lastN operators to determine values ​​in a dataset, as well as the $sortArray operator to sort array elements.
  • The efficiency of segmentation has been significantly improved.
  • The default block size for a sharded collection has been increased to 128 MB.
  • Added configureCollectionBalancing command to defragment a sharded collection.
  • Support for KMIP-aware key providers has been added to Client-Side Field-Level Encryption (CSFLE).
  • Added the ability to compress and encrypt the audit log, which reflects the activity of DBMS users.
  • An experimental data synchronization mode between MongoDB clusters (Cluster-to-Cluster Sync) has been implemented.
  • Added support for attaching additional data, such as geographic information to account for distance and location.
  • Improved performance for reading, querying, and sorting.

Finally if you are interested in knowing more about it about this new version, you can check the details in the following link.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.