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

Minimize Key Cache Invalidation by Compaction

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 0.6.9, 0.7.0 rc 3
    • Component/s: None
    • Labels:
      None

      Description

      Currently, compactions invalidate key cache entries that pointed to the SSTables that were compacted. This results in a sudden increase in the number of seeks necessary for reads immediately after compaction. When writing out a new SSTable after a compaction, it seems like it should be possible to store a list of keys that are currently cached but would be invalidated along with their new position in the new SSTable. Matt Dennis also seems to think this would be relatively easy to do.

        Attachments

        1. 1878_v2.txt
          3 kB
          T Jake Luciani
        2. 1878.txt
          4 kB
          Jonathan Ellis

          Activity

            People

            • Assignee:
              jbellis Jonathan Ellis
              Reporter:
              thobbs Tom Hobbs
              Authors:
              Jonathan Ellis
              Reviewers:
              T Jake Luciani
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: