小编wil*_*zhu的帖子

查询后impala 会缓存一些数据吗

我是 Impala 的新手,我在 Impala 上做了一些测试用例。当我第二次调用时,我发现类似的 SQL 速度要快得多。

例如:

  • table1 = 4B 行
  • table2 = 50M 行

第一个查询select * from table1 where id in (select id from table2 where xxx < 10000) (20 秒)

第二个查询select * from table1 where id in (select id from table2 where xxx < 9999) (10 秒)

第三次查询select * from table1 where id in (select id from table2 where xxx < 100) (1 秒)

我猜 Impala 做了一些特殊的缓存,谁能告诉我它的原因?

谢谢。

impala

3
推荐指数
1
解决办法
2569
查看次数

标签 统计

impala ×1