-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Auto remove messages after predefined timeout #4206
Conversation
# Conflicts: # contrib/scripts/autoremove.py
Looks great, Can you adapt this to PostgreSQL? |
@rubo77 : Ok. I will :) |
there should be a postgres and an sqlite option, (maybe one in comments) And don't forget a description in the head of the file (or add a readme) |
what about your promise? Tipp: About your 99 modified files: you should reset your branch to one commit before and rebase to current master instead of the mess you have done ;) |
This PR seems to have gone stale, and needs work to clean it up. Closing it for now; feel free to open a new PR based on latest |
I did it. However, after run in long time (several months, remove too much messages (via cronjob 5min run once), it can slow down your server because server have to process many redact requests and server itself implement some throttle control techique. |
Please do not just try running the above script on your database. In its current form, it will set the |
Please do not use this script because it's outdate rightnow. I created this script two year ago and till to now, I don't have time to maintain it along with the upgrade of system. So if you would like to use please get ideal from that script and make your own script to adapt your current system. |
I created a script that can run as cronjob to auto remove with predefined timeout.
You can choose which rooms to remove with predefined timeout or vice versa. Also, It scripts can clean up database after removed message with redacted API