• Terri Chu's avatar
    Reduce N+1 queries for Search API projects scope · 344fbdb2
    Terri Chu authored
    Add new scope for Project model to preload data for
    API entities. The scope will be used by the Search
    API to preload data when returning Elastic Search
    results.
    
    Added tests for projects scope to avoid N+1 issues.
    Reorganize merge_requests scope tests.
    344fbdb2
search_spec.rb 14.2 KB