Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 2027 invoked from network); 20 Oct 2010 19:01:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Oct 2010 19:01:25 -0000 Received: (qmail 74432 invoked by uid 500); 20 Oct 2010 19:01:25 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 74407 invoked by uid 500); 20 Oct 2010 19:01:25 -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 74399 invoked by uid 99); 20 Oct 2010 19:01:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 19:01:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 19:01:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9KJ10Ub000847 for ; Wed, 20 Oct 2010 19:01:00 GMT Message-ID: <17300864.15541287601260490.JavaMail.jira@thor> Date: Wed, 20 Oct 2010 15:01:00 -0400 (EDT) From: "HBase Review Board (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-3082) For ICV gets, first look in MemStore before reading StoreFiles In-Reply-To: <29835308.553921286306912970.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923097#action_12923097 ] HBase Review Board commented on HBASE-3082: ------------------------------------------- Message from: "Jonathan Gray" ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://review.cloudera.org/r/1053/#review1585 ----------------------------------------------------------- src/main/java/org/apache/hadoop/hbase/regionserver/ControlledScan.java Need to add apache licenses src/main/java/org/apache/hadoop/hbase/regionserver/ControlledScan.java Maybe a little more description here. Like, why do we need this. Also, is ControlledScan the best name for this class? Not clear to me that this is "controlled" and thus the other scans are "uncontrolled"? If this was to be used for more later and even for this use, it's really additional configuration/options for Scans. So is an InternalScan or ModifiedScan? src/main/java/org/apache/hadoop/hbase/regionserver/ControlledScan.java Rather than these two public booleans, we should have getters/setters. And even rather than just straight set/get on each boolean, these two booleans are usually one or the other, right? So I think it would be better to hide implementation detail and instead expose methods like setMemStoreOnly() and setFilesOnly() which would deal with the two booleans appropriately. Then you'd have get methods like checkMemStore() and checkFiles() or something like that. src/main/java/org/apache/hadoop/hbase/regionserver/ControlledScan.java Whitespace src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java Need to cleanup whitespace here. Maybe a little bit of javadoc for get_last_increment which describes what this does (and why it's still "correct" for increments) - Jonathan > For ICV gets, first look in MemStore before reading StoreFiles > -------------------------------------------------------------- > > Key: HBASE-3082 > URL: https://issues.apache.org/jira/browse/HBASE-3082 > Project: HBase > Issue Type: Improvement > Components: regionserver > Reporter: Jonathan Gray > Assignee: Prakash Khemani > > For incrementColumnValue operations, it is possible to check MemStore for the column being incremented without sacrificing correctness. If the column is not found in MemStore, we would then have to do a normal Get that opens/checks all StoreFiles for the given Store. > In practice, this makes increment operations significantly faster for recently/frequently incremented columns. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.