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

Improve performance of cached row slices

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 1
    • None
    • 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

            tjake T Jake Luciani
            tjake T Jake Luciani
            T Jake Luciani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: