Take the community feedback survey now.
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
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