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

Keep partitioned counters ("contexts") sorted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.8 beta 1
    • None
    • None

    Description

      In the value of CounterColumns, the code keep the subpart unsorted, but sort
      them 'on the fly' when needed (in diff() and merge()). It will be more
      efficient to keep the parts always sorted (it will also be easier in that it
      will remove the need of the ad-hoc in-place quicksort in CounterContext).

      NOTE: this breaks the on-disk file format (for counters)

      Attachments

        1. 0001-Keep-counter-partitioned-context-sorted.patch
          36 kB
          Sylvain Lebresne
        2. CASSANDRA-1937-ALT-0001.patch
          37 kB
          Kelvin Kakugawa

        Activity

          People

            slebresne Sylvain Lebresne
            slebresne Sylvain Lebresne
            Sylvain Lebresne
            Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h