• Stan Hu's avatar
    Optimize ProjectWiki#empty? check · 081264f1
    Stan Hu authored
    The `empty?` check was iterating over all Wiki pages to determine
    whether it was empty. Using the limit parameter allows us to bail
    out early once we found a page.
    
    Note that this currently only improves performance for GitLab 11.0
    until gitlab-org/gitaly#1204 is fixed.
    
    Relates to #40101
    081264f1
sh-optimize-wiki-empty-check.yml 92 Bytes