Zekokhan
Zekokhan

Reputation: 203

How long is an Azure Search Query cached for?

We were performance tuning our app and the azure query response times. We started noticing the significant lowered latency times for cached queries. Every cached query ran 5 times as fast. My question to you is how long are those queries cached in azure search for? We were thinking along the lines of keeping our azure queries for home page load "warm"/"cached" by hitting it with a warm up service.

Thanks!

Upvotes: 2

Views: 831

Answers (1)

ramero-MSFT
ramero-MSFT

Reputation: 980

We do cache filters and facets, so if your queries use either of those, you will see a performance improvement by warming them up first. Also, all caching are size based, rather than time based. So depending on the traffic your service generate, the time your values will be kept in the cache will vary. Because of this, we cannot guarantee a minimum interval for your warm up service. My recommendation would be to go trough trial and error until you find the right time interval that fit your service's usage pattern.

Upvotes: 2

Related Questions