BigW Consortium Gitlab
Search query is especially slow if a user searches a generic string which matches many records, in such case search can take tens of seconds or time out. To speed up the search query, we search only for first 1000 records, if there is >1000 matching records we just display "1000+" instead of precise total count supposing that with such amount the exact count is not so important for the user. Because for issues even limited search was not fast enough, 2-phase approach is used for issues: first we use simpler/faster query to get all public issues, if this exceeds the limit, we just return the limit. If the amount of matching results is lower than limit, we re-run more complex search query (which includes also confidential issues). Re-running the complex query should be fast enough in such case because the amount of matching issues is lower than limit. Because exact total_count is now limited, this patch also switches to to "prev/next" pagination. Related #40540
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
award_emoji.rb | Loading commit data... | |
boards.rb | Loading commit data... | |
branches.rb | Loading commit data... | |
broadcast_messages.rb | Loading commit data... | |
builds.rb | Loading commit data... | |
commits.rb | Loading commit data... | |
deploy_keys.rb | Loading commit data... | |
deployments.rb | Loading commit data... | |
entities.rb | Loading commit data... | |
environments.rb | Loading commit data... | |
files.rb | Loading commit data... | |
groups.rb | Loading commit data... | |
helpers.rb | Loading commit data... | |
issues.rb | Loading commit data... | |
labels.rb | Loading commit data... | |
members.rb | Loading commit data... | |
merge_request_diffs.rb | Loading commit data... | |
merge_requests.rb | Loading commit data... | |
milestones.rb | Loading commit data... | |
notes.rb | Loading commit data... | |
pipelines.rb | Loading commit data... | |
project_hooks.rb | Loading commit data... | |
project_snippets.rb | Loading commit data... | |
projects.rb | Loading commit data... | |
repositories.rb | Loading commit data... | |
runners.rb | Loading commit data... | |
services.rb | Loading commit data... | |
settings.rb | Loading commit data... | |
snippets.rb | Loading commit data... | |
subscriptions.rb | Loading commit data... | |
system_hooks.rb | Loading commit data... | |
tags.rb | Loading commit data... | |
templates.rb | Loading commit data... | |
time_tracking_endpoints.rb | Loading commit data... | |
todos.rb | Loading commit data... | |
triggers.rb | Loading commit data... | |
users.rb | Loading commit data... | |
variables.rb | Loading commit data... |