MongoDB 5.3 Adds Gap Filling
Written by Kay Ewbank   
Friday, 08 April 2022

MongoDB, the NoSQL document database that stores its documents in a JSON-like format with schema, has been updated with improvements including gap filling for time series data and support for clustered indexes.

mongodblogo

Commenting on the new features, Jane Fine, Director of Developer Experience at MongoDB, said that time series is the fastest-growing data-intensive workload for MongoDB customers, but that it’s common for time series data to have gaps, such as when an IoT sensor goes offline.

This causes problems because time series data needs to be continuous for analysis, and when creating histograms or correlating data sets.

To meet this need gap filling has been added to the MongoDB 5.3 Rapid Release. The two new aggregation stages are used to deal with missing data across time series. The $densify stage creates new documents to eliminate the gaps, and $fill sets values for the fields when a value is null or missing. Filling missing values can be done with a constant or using linear interpolation, carrying over the last observation or carrying backward the next observation.

The new release also adds the ability to create a collection with a clustered index. Collections created with a clustered index are called clustered collections, and the advantage they offer is that they enable faster queries without needing a secondary index, such as queries with range scans and equality comparisons on the clustered index key. They also have use less storage, which improves performance for queries and bulk inserts. Clustered collections can also eliminate the need for a secondary TTL (Time To Live) index.

Against these improvements, clustered collections do have additional performance improvements for inserts, updates, deletes, and queries.

MongoDB 5.3 is available now.

mongodblogo

More Information

MongoDB Website

Related Articles

MongoDB 5 Adds Live Resharding

MongoDB Trends

MongoDB Atlas Adds MultiCloud Cluster Support

MongoDB Adds GraphQL Support

MongoDB Improves Query Language

 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Data Wrangler Gets Copilot Integration
11/11/2024

Microsoft has announced that Copilot is being integrated into Data Wrangler. The move will give data scientists the ability to use natural language to clean and transform data, and to get help with fi [ ... ]



Gifts For Geeks 2024
22/11/2024

Are you ready for Thanksgiving, when overeating remorse and a surfeit of being thankful causes the unsettling thought that there are only four weeks till the Xmas break? So here is a mix of weird [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 12 April 2022 )