Skip to content

Explore memoize-ing search_service in Search API

What does this MR do and why?

Describe in detail what your merge request does and why.

In this specific implementation, the strong_memoize_with method caches the result of the block that creates a new SearchService object with the current user and a set of search parameters merged with any additional parameters that may have been passed to the method. The cached result is returned if the method is called again with the same input parameters.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports