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

Use DecoratedKey objects in Memtable, SSTableReader/Writer objects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 0.5
    • None
    • None

    Description

      See CASSANDRA-420 for introduction of DecoratedKey.

      IMO we should move Memtable and SSTR objects to using DK objects, too. This will help Memtable flushes similar to how this helps BMt, and using DK objects in SSTR will avoid a ton of potential confusion about whether a String is a key or a decorated key.

      As a side benefit, moving the decoration operation out of memtable flush and into the insert path will help make better use of multicore systems, since we can have multiple write threads but only one core can flush at a time. (See CASSANDRA-445.)

      Attachments

        1. CASSANDRA-446.patch
          55 kB
          Jonathan Ellis
        2. CASSANDRA-446.patch
          46 kB
          Johan Oskarsson
        3. CASSANDRA-446.patch
          45 kB
          Johan Oskarsson

        Activity

          People

            johanoskarsson Johan Oskarsson
            jbellis Jonathan Ellis
            Johan Oskarsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: