Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15247

Avoid iterating the memtable contents when doing range queries with `only_purge_repaired_tombstones` enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • None
    • Local/Memtable
    • None
    • All
    • None

    Description

      Currently we iterate over the subrange of the memtable contents we are querying for to find the oldest unrepaired tombstone, we could probably just track the oldest tombstone globally for the memtable without any big drawbacks (we might include a few more tombstones when doing the read).

      Also noted that we use EncodingStats#minLocalDeletionTime without checking for the DELETION_TIME_EPOCH value in a few places, this can make us include too many expired tombstones during reads.

      Attachments

        Activity

          People

            Unassigned Unassigned
            marcuse Marcus Eriksson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: