Mongo Query Nested Field Values with two-level unknown parent keys
问题 We use MongoDB to store time-series sensor data similar to the schema designed shown in https://www.mongodb.com/blog/post/schema-design-for-time-series-data-in-mongodb We do get good performance on data queries through time periods. Explanation on the our schema design: "v" is the parent key of sensor readings, the time is converted into nested array using Minutes and Seconds. We use "m" (Minute) as sub-parent key, then "s" (Second) as sub-key of minute reading. The sensor readings are