• Marc Shaw's avatar
    Memoize the source_branch_exists method for a MR · a2f3675d
    Marc Shaw authored
    Each time this will make a redis call, which is expensive if called
    enough times. This was an issue when serializing large diffs for a merge
    request.
    
    Clear the memoized source_branch_exists on MR update
    Clear memoized variables before proceeding with checks
    
    Issue: gitlab.com/gitlab-org/gitlab/-/issues/209786
    Merge Request: gitlab.com/gitlab-org/gitlab/-/merge_requests/34516
    a2f3675d
209786-improve-performance-of-diffs_batch-diffs-metadata-source-branch-ex.yml 133 Bytes