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

Improve performance of cached row slices

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 0.7 beta 1
    • Component/s: None
    • Labels:
      None

      Description

      In Lucandra, I have a use case to pull all columns for a given row.

      I've noticed that for rows with large numbers of columns this takes much longer than I would think since row caching is enabled.

      After looking into this I see that the cached row is rebuilt and pruned even though I want all columns.
      This patch skips this use case and in my case has improved performance significantly.

      From ~400ms to ~50ms

        Attachments

        1. cached-row-slice-perf-patch-1.txt
          6 kB
          T Jake Luciani
        2. 1267-v3.txt
          22 kB
          Jonathan Ellis
        3. 1267-v2.txt
          20 kB
          Jonathan Ellis

          Activity

            People

            • Assignee:
              tjake T Jake Luciani
              Reporter:
              tjake T Jake Luciani
              Authors:
              T Jake Luciani
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: