Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
Hi Sandeep,
I would opt for b) but also using 6 threads to send requests concurently, join them with Task.WhenAll().
Best regards,
MilosR
It also depends on if you are using GetResult or GetContentResult. The later won't be fast with cold cache and 1000 result items.
Multi-search might be an option to look for also, then you only need one round-trip to service.
We have a scenario where need to select top 3 results for six different page types post a search.
Performance wise -
a) Is it better to load 1000 results and then filter and sort by each page type and pick the top 3 from each result set.
This approach has a memory impact as we are loading 1000 resuts on every page load.
b) Or is it better to make 6 different queries to get only 3 results from each result set.
This approach makes 6 search requests instead of 1. But only get 18 relevant results