gitlab-org--gitlab-foss/changelogs/unreleased/sh-optimize-wiki-empty-check.yml
Stan Hu 081264f186 Optimize ProjectWiki#empty? check
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 https://gitlab.com/gitlab-org/gitaly/issues/1204 is fixed.

Relates to #40101
2018-07-12 01:00:15 -07:00

5 lines
92 B
YAML

---
title: Optimize ProjectWiki#empty? check
merge_request: 20573
author:
type: performance