Skip to content

Store latest in database for CI builds

Kamil Trzcińśki requested to merge retried-in-database into master

What does this MR do?

This stores latest in the database. We update in transaction information about whether the build is latest. We don't need an index on that column, as we aim for 99% builds to be latest (retry is usually an exception).

This greatly simplifies and fastens a lot of SQL queries and job-stage-related views.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/25737

Merge request reports