Database / ScyllaDB Interview questions
Why do we use tombstones in ScyllaDB?
Because SSTables are immutable once written, ScyllaDB can't simply erase a row or column in place the way an update-in-place database would. Instead, a delete (explicit, or implicit via TTL expiration) is recorded as a tombstone, a special marker written like any other mutation, that tells later reads "ignore any older value you find for this row/column."
Tombstones let deletes be fully consistent with ScyllaDB's replication and compaction model: they replicate to other nodes exactly like a write would, and they get merged and eventually purged during compaction once the deleted data is safely older than gc_grace_seconds across all replicas. The trade-off is that a workload with heavy deletes (or short TTLs) accumulates many tombstones, and reads that must scan past a large number of tombstones to find live data suffer degraded latency, which is why tombstone-heavy access patterns get specific attention in schema and compaction strategy design.
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
