HBASE-1899 Use scanner caching in shell count

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@823712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2009-10-09 21:55:44 +00:00
parent 5a934ef6e7
commit 400aa9a809
2 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,7 @@ Release 0.21.0 - Unreleased
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

View File

@ -545,6 +545,8 @@ module HBase
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