Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8496 Implement tags and the internals of how a tag should look like
  3. HBASE-9118

Optimization in HFile V3 when no tags are present in a file

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.0, 0.95.2
    • 0.98.0
    • None
    • None

    Description

      Now with V3 we will write tags length (short) along with every KV after value bytes. When no tags at all present it will be wasting 2 bytes for every KV. We can avoid this. During flush let the tags length be written. In fileInfo we can add info like max tags length. During compaction if all the files undergoing the compaction having a 0 max tags length, we can avoid writing 2 bytes (0) along with every KV..

      Note : Similar optimization available with mvcc

      Attachments

        Activity

          People

            anoop.hbase Anoop Sam John
            anoop.hbase Anoop Sam John
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: