Skip to content

Disable pagination counts for Jobs API

Marius Bobin requested to merge mb-disable-pagination-counts-for-ci-builds into master

What does this MR do and why?

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/382362#note_1174658792 and https://gitlab.com/gitlab-org/gitlab/-/issues/382362#note_1194272612

The query to disable pagination counts misbehaves when users have external pipelines: https://console.postgres.ai/gitlab/gitlab-production-ci/sessions/13640/commands/47895

In this case we need to skip over 10676131 records just to figure out if the counts should be disabled. Considering the size of ci_builds table, counts should be disabled for all requests.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Marius Bobin

Merge request reports