InterviewStack.io LogoInterviewStack.io

Geospatial and Time-Series Data Questions

Specialized data shapes and their stores: geospatial data types, spatial indexing, and location queries; and time-series data with high-ingest, retention, and downsampling patterns. Covers when purpose-built extensions or databases beat general-purpose stores for these workloads. A niche but recurring topic for location- and telemetry-heavy systems.

HardSystem Design
90 practiced

Design a schema and SQL query patterns for storing time-series metrics at high write throughput (millions of writes per minute) with efficient downsampling and retention. Consider OLTP vs OLAP characteristics, partitioning, compression, and whether to use a native TSDB or a SQL warehouse. Provide DDL examples and sample queries to compute per-minute max and one-hour aggregates.

HardTechnical
105 practiced

Propose a schema and data pipeline to power real-time driver matching (finding nearest available drivers). Discuss geospatial data representations, indexing (e.g., R-tree, geohash), in-memory stores (Redis/GEO), precomputation strategies, fallback behavior under heavy load, and how to keep the matching system eventually consistent with the authoritative database.

HardSystem Design
123 practiced

Design a table schema and indexing strategy for storing time-series event data to support frequent queries that compute rolling metrics per user (last 7/30/90 days) using CTEs and window functions. Consider partitioning, clustering, compression, and secondary indexes for fast scans and efficient storage.

HardTechnical
93 practiced

Design a geospatial data model to support multi-zoom-level analytics at Lyft: city-wide heatmaps, neighborhood aggregations, and route-level analysis. Include H3 indexing strategy, storage of zone geometries, pre-aggregations for common tiles, and approaches for spatial joins and indexing in warehouses that support GEOGRAPHY types.

HardSystem Design
73 practiced

Describe how to implement efficient time-series storage patterns in a relational database for high ingest rate and fast range scans. Cover partitioning strategies, indexing (for example, clustered index on time), retention policies (drop/archival), compression, and write amplification considerations. Provide a concrete design for storing sensor readings at 10k events/sec.

That is every published Geospatial and Time-Series Data question for Data Engineer so far. Browse the other topics in this category, or practice this one interactively.