• Terri Chu's avatar
    Improve search api preloading for merge_requests scope · ed81e9c8
    Terri Chu authored
    Create MergeRequestPreloader for Search API
    to be used with merge_requests scope.
    
    The preloader lazily loads attributes using
    BatchLoader and utilizes the lazy attributes in
    the MergeRequestBasic Entity if lazy_load option
    is set. This improves response times by avoiding
    N+1 queries.
    ed81e9c8
search_results.rb 11.4 KB