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:
parent
5a934ef6e7
commit
400aa9a809
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue