Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clickhouse select query without cache

Tags:

clickhouse

Is there any "without cache" option in clickhouse select query?

I want to check run-time performance of clickhouse without cache.

I expect options like SQL_NO_CACHE in mysql.

SELECT SQL_NO_CACHE * FROM table WHERE search= 'keyword';
like image 210
hyeon Avatar asked Sep 08 '25 10:09

hyeon


1 Answers

The cache reset is done in two steps:

  1. reset the OS PageCache
sync; echo 1 > /proc/sys/vm/drop_caches
  1. reset mark-cache in CH using DROP MARK CACHE
SYSTEM DROP MARK CACHE
like image 62
vladimir Avatar answered Sep 10 '25 07:09

vladimir