impala第一次查询慢 第二次查询快这是什么原因?
impala依赖操作系统缓存,第一次查询后数据会在操作系统内存中缓存,下一次查询的IO扫描时间就会大幅缩短。
One way to simulate a heavy workload on a lightly loaded system is to flush the OS buffer cache (on each DataNode) between iterations of queries against the same tables or partitions:
$ sync
$ echo 1 > /proc/sys/vm/drop_caches
赞0
踩0