Hi, I recently started working with time series collections in MongoDB and noticed something interesting about the order of keys in documents. When I insert a document into a time series collection and later retrieve it, the key order is different from how I originally inserted it. However, this new order remains consistent across multiple retrievals.
Additionally, it seems that different documents within the same collection (perhaps within the same bucket?) follow the same key order.
This behavior contrasts with normal collections, where documents appear to retain the key order as inserted.
While this probably doesn’t impact functionality, I found it surprising when inspecting the raw data in Compass, where documents with keys in an intended order are much nicer to read and analyze.
Is this an expected behavior of time series collections? And do normal collections always preserve the original key order?
Thanks,
Nicolas