[deploy] Optimization: Default Delete Notifications Older than 3 months (#9038)

This commit is contained in:
Molly Struve 2020-06-30 16:15:21 -05:00 committed by GitHub
parent ab1afd94b0
commit dba270f02e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ class Notification < ApplicationRecord
Notifications::UpdateWorker.perform_async(notifiable.id, notifiable.class.name, action)
end
def fast_destroy_old_notifications(destroy_before_timestamp = 4.months.ago)
def fast_destroy_old_notifications(destroy_before_timestamp = 3.months.ago)
sql = <<-SQL
DELETE FROM notifications
WHERE notifications.id IN (