Partition pruning
Difficulty 3 of 5
A page-view table holds 1 billion rows from two years. The dashboard asks for yesterday's totals twice each second, and each query takes 30 s. Bring dashboard p99 below 2 s, keep writes below 100 ms, stay under 40 USD/mo, and use at most 2 edits.
09:05. Dashboard queries time out at 60 s. The page-view store reads 4,000 MB/s from a 500 MB/s disk.
Hash ring · 3 to 4 nodes · 8 of 36 keys move
Goals and limits
- p99 latency (Dash)
- under 2 s
- p99 latency (Views)
- under 100 ms
- Error rate (*)
- under 0.1%
- Monthly cost
- under 40 USD/mo
- Edit limit
- 2
- Traffic
- 2 req/s
Concepts
How players did
Player results load from the server.