gitlab-org--gitlab-foss/lib
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
..
api Remove EE-specific code from ProtectedRefAccess 2018-09-17 19:36:53 +08:00
assets
backup
banzai 'code_block' closer to original implementation 2018-09-11 18:39:39 -05:00
bitbucket
bitbucket_server
constraints
container_registry Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
declarative_policy
generators/rails/post_deployment_migration
gitaly
gitlab Add Gitlab::Database::Subquery.self_join to delete_all with limit 2018-09-20 16:27:09 +02:00
google_api Teach GoogleApi::CloudPlatform::Client#projects_zones_clusters_create about legacy_abac argument 2018-09-14 16:26:51 +12:00
haml_lint
json_web_token
mattermost
microsoft_teams
object_storage Fix object storage uploads not working with AWS v2 2018-09-14 07:43:39 -07:00
omni_auth/strategies
peek
rouge
rspec_flaky
support
system_check Fix grammar (setup to set-up) in code comments, spec, views, etc. 2018-09-17 09:17:33 +00:00
tasks Include post migrations when loading the schema 2018-09-19 12:29:25 +00:00
after_commit_queue.rb
backup.rb
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
event_filter.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
expand_variables.rb
extracts_path.rb Fix rubocop Style/ZeroLengthPredicate 2018-09-18 14:31:17 +05:00
feature.rb remove guard clause and add comment on performace 2018-09-05 09:26:13 -05:00
file_size_validator.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
forever.rb
gitlab.rb
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb