• Igor Drozdov's avatar
    Improve performance of commits endpoint · 93eb59c7
    Igor Drozdov authored
    Currently all the commits of a merge request is loaded
    into the memory, converted to CommitCollection and
    then paginated as an array
    
    We can dramatically improve the performance by
    paginating the diff commits first and then convert
    this smaller array into CommitCollection
    93eb59c7
merge_requests.rb 20.5 KB