我是 Impala 的新手,我在 Impala 上做了一些测试用例。当我第二次调用时,我发现类似的 SQL 速度要快得多。
例如:
第一个查询: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 ×1