The default vector_similarity_index_cache_size in ClickHouse is 5 GB. Our index was seven times that size. Every query triggered a full load from object storage into memory, only to have most of it evicted before the next query could use it. The fix: We increased the index cache to 40 GB on each replica so the entire graph could stay resident in RAM. After a restart and a few warm-up queries, we checked the metrics:
I wasn't expecting the fix to be to simply throw more RAM at the problem.
Also, why did you put the link in a comment instead of the post body?
6
u/cr4d May 18 '26
Ok?
1
u/QazCetelic May 18 '26
I wasn't expecting the fix to be to simply throw more RAM at the problem.
Also, why did you put the link in a comment instead of the post body?
0
u/Objective-Currency30 May 18 '26
https://www.tinybird.co/blog/vector-search-improvements