081264f186
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
5 lines
92 B
YAML
5 lines
92 B
YAML
---
|
|
title: Optimize ProjectWiki#empty? check
|
|
merge_request: 20573
|
|
author:
|
|
type: performance
|