• Mario de la Ossa's avatar
    Avoid Gitaly N+1 in Elasticsearch commit results · 7671d6f3
    Mario de la Ossa authored
    We avoid a Gitaly N+1 by passing a hash to Gitlab::Git::Commit instead
    of loading the commits via Gitaly.
    
    We also change Gitlab::Git::Commit to have a lazy_load_parents option
    that allows us not to load parent_ids unless necessary
    7671d6f3
commit.rb 11.8 KB