gitlab-org--gitlab-foss/spec/lib/gitlab/database
Toon Claes ce830d3c60 Add Gitlab::Database::Subquery.self_join to delete_all with limit
`delete_all` doesn't support limit, so you'd need to subquery
that. And instead of subquerying with `where(id: query)`, it's better
to use an `INNER JOIN`. This method also works with MySQL, while
subquerying doesn't (without another layer of subquerying)

Reference:
https://stackoverflow.com/questions/17892762/mysql-this-version-of-mysql-doesnt-yet-support-limit-in-all-any-some-subqu/17892886#17892886
2018-09-20 16:27:09 +02:00
..
rename_reserved_paths_migration Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
count_spec.rb Fix fast admin counters not working when PostgreSQL has secondaries 2018-05-25 22:58:43 -07:00
grant_spec.rb
median_spec.rb Adapt cycle analytics spec helper and cycle analytics usage data spec 2018-03-01 16:43:26 +00:00
migration_helpers_spec.rb disable_statement_timeout doesn't require any argument anymore 2018-08-11 04:15:59 +02:00
multi_threaded_migration_spec.rb
sha_attribute_spec.rb [Rails5] Update `type_cast_*_database` methods 2018-04-06 10:57:19 +00:00
subquery_spec.rb Add Gitlab::Database::Subquery.self_join to delete_all with limit 2018-09-20 16:27:09 +02:00