Creating Time Series Collections in MongoDB


 

This article is part of Robert Sheldon’s continuing series on Mongo DB. To see all of the items in the series, click here.

Throughout this series, I’ve introduced you to different features in MongoDB and provided examples to help demonstrate how the database system works. The examples have all been based on conventional collections, the type that MongoDB creates by default. However, MongoDB also supports other types of collections, including the time series collection, which can benefit many of today’s event-driven workloads.

The documents in a time series collection represent a sequence of data points, with each document recording an