Design a MongoDB schema optimized for storing and querying IoT sensor data with time-series patterns.
Design the time-series document structure. Consider bucketing strategies (per hour/day), pre-aggregation, and the trade-offs of bucket size.