Splitting one overloaded data store in two, and getting 2–4× faster
Access-pattern analysis led to a dual OLTP/OLAP design and a migration that cut resources 30–40% and cost 20–30% for a 30+ TB operational store.
Data architect: design, proof of concept and migration
- Redshift
- Aurora PostgreSQL
- EMR
- Huawei Cloud FabricSQL
- GaussDB DWS
Context
An operational data store serves real-time reporting over JDBC. Its largest table is over 30 TB compressed with one month of retention, and it drove most of the cost. The service targets were fixed: responses under 2 seconds, 500 concurrent users, data available within 6 hours of the transaction.
Role
Data architect. I designed the options, ran the proofs of concept and led the migration of the first workload.
Approach
- Look at how tables are used. Tables fell into two classes: high-traffic small tables (under 1 TB) and low-traffic large tables (over 1 TB). One engine was being asked to serve both.
- Split by access pattern. A transactional relational database for the small, hot tables; an analytical engine for the large ones.
- Compare with proofs of concept. A cloud data warehouse and a relational-compatible engine were tested against the incumbent stack, then a fabric-style SQL engine was tested on the largest table.
- Migrate a real workload. A reporting workload moved from Redshift to the new analytical engine.
Result
Compute and memory down 30–40%, queries 2–4× faster, cost down 20–30%, all within the original service targets. The proof of concept also took the team to the Top 9 of 219 teams at the Huawei Developer Competition 2024 APAC (Enterprise track).
What I’d do differently
I would keep the access-pattern analysis as a standing report rather than a one-off study. The next sizing decision then starts from current data instead of from whichever table is biggest.