wasAsked.

Database Used for the Billion-Record Table: What database was that (the one with almost a billion records)?

Dodge Construction Network · Senior Developer · technical

Published

Asked in 2026 · Software Engineering

Community answers

Posted by wasAsked editorial collection

This is a follow-up about your own project, so answer with the real database and, more importantly, how you handled the scale. A strong answer names the technology, the access pattern and the techniques that kept it fast. If you are not sure of exact figures, give honest approximations. What a good answer covers 1. The database and why it fit - For example: "Azure SQL Database (Hyperscale tier)", "PostgreSQL", "Cosmos DB", "Amazon Aurora", or an analytics store such as ClickHouse or BigQuery. - Why it was chosen: transactional needs, query patterns, team skills, cost. 2. The table's shape and growth - What one row represented (events, transactions, telemetry readings, audit logs), the approximate row size, and growth rate per day. 3. How queries stayed fast - Indexing strategy: a narrow clustered key (often time-based plus ID) and a few targeted non-clustered or covering indexes. - Partitioning by date (table partitioning in SQL Server or PostgreSQL) so queries and maintenance touch only recent partitions, and old partitions can be switched out or archived cheaply. - Columnstore indexes (SQL Server) or a columnar store for analytical queries over huge volumes. - Keyset pagination, and avoiding SELECT * and unbounded scans. - Pre-aggregated summary tables for dashboards. - Read replicas for reporting workloads. 4. How data was written and maintained - Batched inserts (bulk copy), minimal indexes on hot write tables, and archival or retention policies (deleting or moving data older than N months in batches). - Statistics and index maintenance strategies. Example answer "It was Azure SQL Database on the Hyperscale tier. The table stored shipment tracking events — about 900 million rows, growing by around 2 million a day. We partitioned it monthly on EventDate, used a clustered index on (EventDate, Id), and added a covering index on (ShipmentId, EventDate) for the most common lookup. Analytics queries used a clustered columnstore copy refreshed nightly, and data older than 24 months was archived to blob storage. Typical lookups stayed under 50 ms." Be ready for follow-ups: index choices, how you tested performance, backup and restore times, and what you would do differently.

Ravindra Wadile · · 0 likes

Sign in to add your answer

Related interview topics