Explore memoize-ing search_service in Search API
search_service
is called multiple times in the Search API (lib/api/search.rb). Is it possible to memoize the result?
The following discussion from !101047 (merged) should be addressed:
-
@terrichu started a discussion: (+1 comment) thought (non-blocking): I almost wonder if it's possible to memoize search_service here since it's called so many times. I'm not sure if it would work
🤔 Maybe that can be explored in a follow up?