hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r823712 - in /hadoop/hbase/trunk: CHANGES.txt bin/HBase.rb
Date Fri, 09 Oct 2009 21:55:44 GMT
Author: jdcryans
Date: Fri Oct  9 21:55:44 2009
New Revision: 823712

URL: http://svn.apache.org/viewvc?rev=823712&view=rev
Log:
HBASE-1899  Use scanner caching in shell count

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/bin/HBase.rb

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=823712&r1=823711&r2=823712&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Fri Oct  9 21:55:44 2009
@@ -104,6 +104,7 @@
    HBASE-1506  [performance] Make splits faster
    HBASE-1722  Add support for exporting HBase metrics via JMX
                (Gary Helming via Stack)
+   HBASE-1899  Use scanner caching in shell count
 
   OPTIMIZATIONS
 

Modified: hadoop/hbase/trunk/bin/HBase.rb
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/bin/HBase.rb?rev=823712&r1=823711&r2=823712&view=diff
==============================================================================
--- hadoop/hbase/trunk/bin/HBase.rb (original)
+++ hadoop/hbase/trunk/bin/HBase.rb Fri Oct  9 21:55:44 2009
@@ -545,6 +545,8 @@
       now = Time.now
       scan = Scan.new()
       scan.setCacheBlocks(false)
+      # We can safely set scanner caching with the first key only filter
+      scan.setCaching(10)
       scan.setFilter(FirstKeyOnlyFilter.new())
       s = @table.getScanner(scan)
       count = 0



Mime
View raw message