diff options
author | Stan Hu <stanhu@gmail.com> | 2019-09-11 23:16:40 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-09-11 23:24:14 -0700 |
commit | c13c7e6709bf4748bbe411e9fd35a2436dcde421 (patch) | |
tree | e470b84c29c2c7999041042c137d15887bda5994 /db/migrate/20180209115333_create_chatops_tables.rb | |
parent | 80e9f7f3463cc67c6eb1dd22fb9e2dc88ebed3f1 (diff) | |
download | gitlab-ce-c13c7e6709bf4748bbe411e9fd35a2436dcde421.tar.gz |
Fix member expiration not always workingsh-add-index-members-expires
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
Diffstat (limited to 'db/migrate/20180209115333_create_chatops_tables.rb')
0 files changed, 0 insertions, 0 deletions