gitlab-org--gitlab-foss/db
Andreas Brandl 5f35ea146a Fix concurrency issue with migration for user_interacted_projects table.
The concurrency issue originates from inserts on
`user_interacted_projects` from the app while running the post-deploy
migration.

This change comes with a strategy to lock the table while removing
duplicates and creating the unique index (and similar for FK
constraints).

Also, we'll have a non-unique index until the post-deploy migration is
finished to speed up queries during that time.

Closes #44205.
2018-03-14 17:51:47 +01:00
..
fixtures Remove root user 100 project limit to rely on default 100,000 2018-02-14 20:51:37 -06:00
migrate Fix concurrency issue with migration for user_interacted_projects table. 2018-03-14 17:51:47 +01:00
post_migrate Fix concurrency issue with migration for user_interacted_projects table. 2018-03-14 17:51:47 +01:00
schema.rb Add partial indexes on todos to handle users with many todos 2018-03-09 16:56:58 +00:00
seeds.rb