-
- Downloads
Fix member expiration not always working
The Sidekiq job `RemoveExpiredMembersWorker` was failing to run in production because it was hitting statement timeouts because it was scanning all rows in order. On staging, where it used to scan 4 million rows, adding an index brought this down to only a few hundred rows. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67286
Showing
- changelogs/unreleased/sh-add-index-members-expires.yml 5 additions, 0 deletionschangelogs/unreleased/sh-add-index-members-expires.yml
- db/migrate/20190912061145_add_index_to_members_on_expires_at.rb 17 additions, 0 deletions...rate/20190912061145_add_index_to_members_on_expires_at.rb
- db/schema.rb 2 additions, 1 deletiondb/schema.rb
Please register or sign in to comment