Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-62751

Skip hash table lookup in GetByPrefix when dedup is not needed

    XMLWordPrintable

Details

    Description

      When a prefix to be read is only present in a single sstable, it is wasteful to insert every entry to the hash table. The hash table insertion for dedup consumes significant CPU (20+%). See the attached CPU profile.

      We can skip hash table insertion when the the entire prefix is read from a single sstable and no merge is required. This should improve performance in those cases.

      Attachments

        1. prefixread.pdf
          26 kB
          Sarath Lakshman
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            anirudh.rowjee Anirudh Rowjee
            sarath Sarath Lakshman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty