gitlab-org--gitlab-foss/db/fixtures/development
Yorick Peterse 92b2c74ce1
Refresh project authorizations using a Redis lease
When I proposed using serializable transactions I was hoping we would be
able to refresh data of individual users concurrently. Unfortunately
upon closer inspection it was revealed this was not the case. This could
result in a lot of queries failing due to serialization errors,
overloading the database in the process (given enough workers trying to
update the target table).

To work around this we're now using a Redis lease that is cancelled upon
completion. This ensures we can update the data of different users
concurrently without overloading the database.

The code will try to obtain the lease until it succeeds, waiting at
least 1 second between retries. This is necessary as we may otherwise
end up _not_ updating the data which is not an option.
2016-11-25 13:35:01 +01:00
..
01_admin.rb Revert "Change default admin password from "5iveL!fe" to "password"" 2015-07-14 17:59:36 +02:00
04_project.rb Refresh project authorizations using a Redis lease 2016-11-25 13:35:01 +01:00
05_users.rb Minor refactoring in seeding 2015-10-16 11:30:26 +02:00
06_teams.rb Refresh project authorizations using a Redis lease 2016-11-25 13:35:01 +01:00
07_milestones.rb Fix seed_fu failure with inserting milestones into test DB 2016-04-10 06:39:42 -07:00
09_issues.rb Minor refactoring in seeding 2015-10-16 11:30:26 +02:00
10_merge_requests.rb Limit the number of merge requests per project to avoid long seeds 2016-05-04 09:22:01 -07:00
11_keys.rb Improve developer seeds 2014-08-11 17:55:31 +03:00
12_snippets.rb Minor refactoring in seeding 2015-10-16 11:30:26 +02:00
13_comments.rb Update ffaker gem 2015-05-20 19:22:00 -04:00
14_pipelines.rb Refactor code to use available and stopped statuses and refactor views to use separate renders 2016-10-17 12:45:31 +02:00
15_award_emoji.rb Random selection now also works for MySQL 2016-06-15 12:10:41 +02:00
16_protected_branches.rb Add seeds for protected branches. 2016-07-29 15:20:39 +05:30
17_cycle_analytics.rb Refresh project authorizations using a Redis lease 2016-11-25 13:35:01 +01:00