Commit Graph

1 Commits

Author SHA1 Message Date
Stan Hu c13c7e6709 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
2019-09-11 23:24:14 -07:00