Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-2794

Utilize ROWCOL bloom filter if multiple columns within same family are requested in a Get

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0
    • Performance
    • None
    • Resolving (the patch has been committed).

    Description

      Noticed the following snippet in StoreFile.java:Scanner:shouldSeek():

              switch(bloomFilterType) {
                case ROW:
                  key = row;
                  break;
                case ROWCOL:
                  if (columns.size() == 1) {
                    byte[] col = columns.first();
                    key = Bytes.add(row, col);
                    break;
                  }
                  //$FALL-THROUGH$
                default:
                  return true;
              }
      

      If columns.size > 1, then we currently don't take advantage of the bloom filter. We should optimize this to check bloom for each of columns and if none of the columns are present in the bloom avoid opening the file.

      Attachments

        Activity

          People

            mikhail Mikhail Gryzykhin
            kannanm Kannan Muthukkaruppan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: