Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16EA3D819 for ; Tue, 11 Sep 2012 17:32:08 +0000 (UTC) Received: (qmail 55842 invoked by uid 500); 11 Sep 2012 17:32:07 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 55789 invoked by uid 500); 11 Sep 2012 17:32:07 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 55780 invoked by uid 99); 11 Sep 2012 17:32:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 17:32:07 +0000 Date: Wed, 12 Sep 2012 04:32:07 +1100 (NCT) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: <1717742330.64311.1347384727793.JavaMail.jiratomcat@arcas> In-Reply-To: <296849296.63654.1347374589531.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HBASE-6757) Very inefficient behaviour of scan using FilterList MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-6757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453203#comment-13453203 ] Andrew Purtell commented on HBASE-6757: --------------------------------------- +1 for 0.94 as well. The current behavior is wrong. > Very inefficient behaviour of scan using FilterList > --------------------------------------------------- > > Key: HBASE-6757 > URL: https://issues.apache.org/jira/browse/HBASE-6757 > Project: HBase > Issue Type: Improvement > Components: filters > Affects Versions: 0.90.6 > Reporter: Jerry Lam > Fix For: 0.96.0, 0.94.2 > > Attachments: 6757.txt, CopyOfTestColumnPrefixFilter.java, DisplayFilter.java > > > The behaviour of scan is very inefficient when using with FilterList. > The FilterList rewrites the return code from NEXT_ROW to SKIP from a filter if Operator.MUST_PASS_ALL is used. > This happens when using ColumnPrefixFilter. Even though the ColumnPrefixFilter indicates to jump to NEXT_ROW because no further match can be found, the scan continues to scan all versions of a column in that row and all columns of that row because the ReturnCode from ColumnPrefixFilter has been rewritten by the FilterList from NEXT_ROW to SKIP. > This is particularly inefficient when there are many versions in a column because the check is performed on all versions of the column instead of just by checking the qualifier of the column name. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira