I have this index with around 4.5 million documents. When i do some queries
on it, it takes a couple of hundred ms to complete... but only the first
time I do them. If I repeat the same search another time, it answers the
queries an order of magnitude faster. More interestingly, it continues
being faster even after I restart my client code, which leads me to believe
that some optimization happens when I do a query and is persisted into the
index.

What is the mechanism that is making that happen? Is that just a cache
being written to the index itself or is it something fancier? if it is
something fancier, is there a way to "warm up" the index in a way that most
queries would be faster from the get go (even at the cost of space)?

Thanks in advance.

Reply via email to