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

Improved DeletionTime serialization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Local/SSTable
    • None

    Description

      DeletionTime.markedForDeleteAt is a long useconds since Unix Epoch. But I noticed that with 7 bytes we can already encode ~2284 years. We can either shed the 8th byte, for reduced IO and disk, or can encode some sentinel values as flags there. blerer suggested starting with DeletionTime.LIVE.

      That would mean reading and writing 1 byte instead of 12 (8 mfda long + 4 ldts int). Yes we already avoid serializing DeletionTime (DT) in sstables at row level entirely but not at partition level and it is also serialized at index, metadata, etc.

      Attachments

        1. screenshot-1.png
          95 kB
          Berenguer Blasi
        2. screenshot-2.png
          48 kB
          Berenguer Blasi
        3. screenshot-3.png
          72 kB
          Berenguer Blasi

        Activity

          People

            bereng Berenguer Blasi
            bereng Berenguer Blasi
            Berenguer Blasi
            Branimir Lambov, Jacek Lewandowski, Jakub Zytka, Piotr Kolaczkowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 14h 20m
                14h 20m