gitlab-org--gitlab-foss/spec
Yorick Peterse a97dcc077c
Add method for creating foreign keys concurrently
This method allows one to create foreign keys without blocking access to
the source table, but only on PostgreSQL.

When creating a regular foreign key the "ALTER TABLE" statement used for
this won't return until all data has been validated. This statement in
turn will acquire a lock on the source table. As a result this lock can
be held for quite a long amount of time, depending on the number of rows
and system load.

By breaking up the foreign key creation process in two steps (creation,
and validation) we can reduce the amount of locking to a minimum.
Locking is still necessary for the "ALTER TABLE" statement that adds the
constraint, but this is a fast process and so will only block access for
a few milliseconds.
2017-02-10 21:51:09 +01:00
..
bin DRY up the specs for bin/changelog 2016-11-03 17:35:06 +00:00
config
controllers Don't perform Devise trackable updates on blocked User records 2017-02-10 11:51:14 -05:00
db/production
factories Don't perform Devise trackable updates on blocked User records 2017-02-10 11:51:14 -05:00
features Merge branch '27963-tooltips-jobs' into 'master' 2017-02-10 19:59:50 +00:00
finders Show parent group members for nested group 2017-02-10 17:34:12 +02:00
fixtures Merge branch 'fix-references-header-parsing' into 'master' 2017-02-06 19:33:21 +00:00
helpers Merge branch 'restore-issues_mentioned_but_not_closing' into 'master' 2017-02-08 12:35:04 +00:00
initializers
javascripts Replace teaspoon references with Karma 2017-02-10 10:50:12 -06:00
lib Add method for creating foreign keys concurrently 2017-02-10 21:51:09 +01:00
mailers
migrations
models Merge branch 'dz-nested-groups-members-page' into 'master' 2017-02-10 18:03:57 +00:00
policies More backport 2017-02-06 17:19:37 -06:00
presenters/ci
requests Merge branch '1051-api-create-users-without-password' into 'master' 2017-02-10 18:34:58 +00:00
routing Merge branch 'master' into jej-pages-picked-from-ee 2017-02-03 17:25:26 +00:00
rubocop/cop Add a spec for our custom GemFetcher cop 2017-02-09 12:11:19 -05:00
serializers Add specs for standalone pagination for serializers 2017-02-06 15:07:13 +01:00
services Merge branch 'rename_delete_services' into 'master' 2017-02-08 17:52:36 +00:00
support Remove a transient failure from spec/requests/api/groups_spec.rb 2017-02-09 20:23:41 -05:00
tasks CI runs lint on shell scripts in lib/support 2017-02-07 22:19:16 +00:00
uploaders
views Fix broken tests 2017-02-03 09:43:04 +00:00
workers Fix inconsistent naming for services that delete things 2017-02-08 09:16:43 +01:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Shave spec/features/issues/filtered_search/dropdown_label_spec.rb from 10 minutes to 1.5 minutes 2017-02-03 19:08:21 +01:00