基本值过滤器性能

问题描述 投票:-1回答:1

如何在hbase中快速搜索指定值?

我尝试过使用下面的过滤器和skipfilter,但是性能很差,并且得到了[[timeout / callout exception,我有5 000 000条记录。

我无法快速搜索。

SingleColumnValueFilter filter = new SingleColumnValueFilter(Bytes.toBytes("cf"),Bytes.toBytes("qualifier"),CompareOp.EQUAL,Bytes.toBytes("1234")); ValueFilter filter = new ValueFilter(CompareOp.EQUAL,Bytes.toBytes("1234"));

获取所有记录中所有可用的1234值。 

有什么方法可以提高过滤器的性能吗?

hadoop bigdata hbase
1个回答
0
投票
如果您要查找不属于行键的特定列值,则不是真的,HBase需要执行全表扫描,因此比按行键搜索要慢。
© www.soinside.com 2019 - 2024. All rights reserved.