gitlab-org--gitlab-foss/app
Stan Hu 5c8ce94052 Fix statement timeouts in RemoveRestrictedTodos migration
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
2018-11-04 06:01:17 -08:00
..
assets Merge branch '51620-cannot-add-label-to-issue-from-board' into 'master' 2018-11-02 13:24:22 +00:00
controllers Merge branch 'top_level_clusters_controller' into 'master' 2018-11-02 12:34:40 +00:00
finders Merge branch 'top_level_clusters_controller' into 'master' 2018-11-02 12:34:40 +00:00
graphql Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
helpers Merge branch 'top_level_clusters_controller' into 'master' 2018-11-02 12:34:40 +00:00
mailers Add email for milestone change 2018-11-02 16:29:32 +00:00
models Fix statement timeouts in RemoveRestrictedTodos migration 2018-11-04 06:01:17 -08:00
policies Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
presenters Merge branch 'top_level_clusters_controller' into 'master' 2018-11-02 12:34:40 +00:00
serializers Add scheduled flag to job entity 2018-11-02 11:52:34 +00:00
services Optimize merge request refresh by using the database to check commit SHAs 2018-11-02 12:11:30 -07:00
uploaders Backport of "Use Geo log to remove files when migrated to object storage" 2018-10-03 15:09:16 +00:00
validators Allow UrlValidator to work with attr_encrypted 2018-09-17 19:34:40 +01:00
views Add email for milestone change 2018-11-02 16:29:32 +00:00
workers Incorporates Kubernetes Namespace into Cluster's flow 2018-11-02 15:46:15 +00:00