Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to delete old notifications #30

Open
rubickcz opened this issue Apr 6, 2020 · 0 comments
Open

Add command to delete old notifications #30

rubickcz opened this issue Apr 6, 2020 · 0 comments

Comments

@rubickcz
Copy link
Member

rubickcz commented Apr 6, 2020

Hoarding of old notifications is bad for several reasons, e.g.:

  • database gets bigger -> filtering gets slower
  • it is hard to make data migrations with high notifications count

Notifications are usefull at time they arrive, but like 3 months later, they are pretty useless. The goal is to implement a Django command, that will delete notifications older than e.g. 6 months (this should be configurable via settings)

NOTE: the command should also delete templates that have no notifications associated with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant