5c8ce94052
On GitLab.com, the RemoveRestrictedTodos background migration encountered about 700+ failures a day due to statement timeouts. PostgreSQL might perform badly with a LIMIT 1 because the planner is guessing that scanning the index in ID order will come across the desired row in less time it will take the planner than using another index. The order_hint does not affect the search results. For example, `ORDER BY id ASC, updated_at ASC` means the same thing as `ORDER BY id ASC`. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52649
5 lines
110 B
YAML
5 lines
110 B
YAML
---
|
|
title: Fix statement timeouts in RemoveRestrictedTodos migration
|
|
merge_request: 22795
|
|
author:
|
|
type: other
|