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

only check KeyCache when it is enabled

    XMLWordPrintableJSON

Details

    • Low

    Description

      If the KeyCache exists (because at least one column family is using it) we currenlty check the key cache even for requests to column families where the key cache is disabled. I think it would be better to only check the cache if entries could be there.

      • This will align the key cache with how the row cache behaves.
      • This makes the key cache metrics much more useful. For example, 'requests' becomes 'requests to things that could be in the key cache' and not just 'total requests'.
      • This migh be a micro-optimization saving a few metric update.

      Attachments

        1. j9872-2.0-v1.txt
          0.8 kB
          Chris Burroughs
        2. j9872-2.1-v1.txt
          0.8 kB
          Chris Burroughs
        3. j9872-3.0-v1.txt
          0.8 kB
          Chris Burroughs

        Issue Links

          Activity

            People

              cburroughs Chris Burroughs
              cburroughs Chris Burroughs
              Chris Burroughs
              Robert Stupp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: