~/talk

Efficient and Consistent Time to Live TTL Implementation in MyRocks at Meta

Talkat Percona Live 2026 Bay Area · 2026-05-27..05-29· [databases]
slides:none on file

MyRocks adds native TTL with read filtering for immediate invisibility and a compaction filter for physical reclaim, prepending an 8‑byte TTL timestamp to every index. Benchmarks show TTL costs ~15 ms SQL CPU, 0 MB binlog and 300 ms wall time versus 20 s, 136 MB and 25 s for batched deletes. Replicas stay consistent by writing minimal snapshot metadata and using hybrid logical clocks; deployed fixes include RocksDB scheduler tweaks and guidance to avoid many secondary indexes or frequent TTL updates.

AI-written summary · about

  1. 0:00TTL in MyRocks at Meta
  2. 1:27Ad-hoc delete jobs challenges
  3. 3:32Native TTL requirements
  4. 5:00Logical expiration via read filtering
  5. 7:50Physical expiration with compaction filters
  6. 10:42Snapshot isolation in TTL
  7. 14:13Replication challenges
  8. 18:09Hybrid logical clocks for TTL
  9. 19:31TTL overhead evaluation
  10. 21:42Adversarial workloads
  11. 23:30Production fixes for TTL
  12. 25:58Shard migrations with TTL
  13. 27:24Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.