Zoekt calls two times for rendering the results
What does this MR do and why?
This code change improves how search results are cached and retrieved in a search system. Previously, the code would recalculate blob data every time it needed to count results, which was inefficient. Now it stores the blob data in a reusable variable (@blobs) and tries to get the count from that cached data first. If the cached data isn't available, it falls back to the original method but with a more efficient "count only" option. This reduces unnecessary duplicate work and makes the search feature faster.
References
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #563357 (closed)
Edited by Ravi Kumar

