Add support for deleting delete_all associations in btches

has_many associations with dependent: delete_all may fail to delete due to statement timeouts or query conflicts if there are a lot of associations. We can do a number of things now:

  • https://github.com/ankane/delete_in_batches
  • https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18609
Edited Apr 30, 2018 by Stan Hu
Assignee Loading
Time tracking Loading