diff --git a/apps/users/tasks.py b/apps/users/tasks.py index 1dc0b88440..667b37ca21 100644 --- a/apps/users/tasks.py +++ b/apps/users/tasks.py @@ -8,7 +8,7 @@ from users.models import UserProfile task_log = commonware.log.getLogger('z.task') -@task(rate_limit='20/m') +@task(rate_limit='40/m') def _delete_users(data, **kw): """Feed me a list of user ids you want to delete from the database. This isn't a flag, it actually deletes rows.""" diff --git a/migrations/64-user-id-index.sql b/migrations/64-user-id-index.sql new file mode 100644 index 0000000000..bb74f25a2b --- /dev/null +++ b/migrations/64-user-id-index.sql @@ -0,0 +1,4 @@ +-- This needs to be added on your dev copies, but justdave already ran it on +-- preview and production so I'm commenting it out here. + +-- ALTER TABLE addonlogs ADD KEY `user_id` (`user_id`);