Reads are slow or timing out. Now what?
The failures to plan for, and the playbook from symptom to fix.
| What happens | What you see | What I do |
|---|---|---|
| A partition that grows forever | One node hot, slow reads, compaction struggling | Add a time bucket to the partition key, such as (conversation_id, month). Keep partitions well under 100 MB. |
| Tombstones read in a range | Slow reads, then TombstoneOverwhelmingException | Model reads so they do not scan deleted rows. TimeWindow compaction for data that expires with a TTL. |
| Repair not run within gc_grace_seconds | Deleted data comes back | Schedule repair. Cassandra 6.0 builds repair in. |
| A query the key cannot answer | Rejected unless you add ALLOW FILTERING, then a scan of every node | A second table keyed for that query, or a storage-attached index (5.0) for selective filters. |
| Read, change, write | Lost updates: writes are last-write-wins by timestamp | Write without reading first. Use counters, or lightweight transactions (IF ...) where you truly need compare-and-set. |
| Lightweight transactions everywhere | Writes several times slower | Use them only for the few rows that need them. |
| Clocks out of step | An older write wins over a newer one | NTP everywhere, and let the server assign timestamps. |
How do databases actually work? From one row on disk to transactions: the words you need, PostgreSQL, MySQL and MongoDB from the files up, then Redis, Cassandra and vector search, side by side, and the query and concurrency traps.