gitlab-org--gitlab-foss/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 [Rails5] Disable inheritance_column for Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespace 2018-06-16 13:11:50 +11:00
arel_methods.rb [Rails5] Fix Arel::UpdateManager 2018-04-29 12:54:58 +11:00
count.rb Fix fast admin counters not working when PostgreSQL has secondaries 2018-05-25 22:58:43 -07:00
date_time.rb fixing spec failures 2016-11-17 08:22:55 +01:00
grant.rb Added FromUnion to easily select from a UNION 2018-09-17 12:39:43 +02:00
median.rb Rails5 fix arel from in mysql_median_datetime_sql 2018-06-26 00:35:47 +02:00
migration_helpers.rb disable_statement_timeout doesn't require any argument anymore 2018-08-11 04:15:59 +02:00
multi_threaded_migration.rb Prepare for zero downtime migrations 2017-04-12 18:15:19 +02:00
read_only_relation.rb Fix setting share_with_group_lock 2017-09-15 17:38:46 +02:00
sha_attribute.rb [Rails5] Update type_cast_*_database methods 2018-04-06 10:57:19 +00:00
subquery.rb Add Gitlab::Database::Subquery.self_join to delete_all with limit 2018-09-20 16:27:09 +02:00