Added
A telemetry service ingests measurements from many producers into MongoDB 7.0. Producers can arrive out of order, while analysts most often request the latest measurements for a device over a time range. The collection is expected to grow rapidly, and administrators want MongoDB's time-series storage optimizations rather than manually maintaining bucket documents. Events include a timestamp, device identifier, and varying measurement fields. Which collection design best matches these requirements?
A time-series collection is designed for measurements organized by time, and a stable device identifier is appropriate metadata for grouping measurements. A capped collection's insertion-order behavior does not provide the required time-range model and has fixed-size retention semantics. An unbounded per-device array grows toward document-size and update-cost problems. A clustered collection is not a substitute for the time-series collection model, and device identifier is not a timestamp field.