-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cleaning ActiveInsights table periodically #2
Comments
love it. we can probably do something similar to what solid cache/cable do. |
Be careful with autovacuum on postgres when you do this. |
Alternatively, you could run a periodic aggregation over a given resolution period e.g 5mins for older data while giving more resolution for recent data. |
What is the concern exactly? I'm not a postgres expert :3 |
When deleting large amounts of data, you can trigger auto vacuuming, which can impact performance.
|
Got it, yeah this could run autovacuum alot of times. The table has a lot of rows after 3-4 days of usage only. |
Thanks for this great gem, I'm using it currently in production where I'm handling ~100-200 TPM.
I just found that the table size increased by a huge margin in a small period of time and reached ~4GBs, and thought that the gem could provide an ActiveJob job that cleans the table and keeps the last N days of data only, what do you think?
The text was updated successfully, but these errors were encountered: