-
Notifications
You must be signed in to change notification settings - Fork 57
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
chore: Minor enhancements #2789
Conversation
This counts the number of rows with "select count(1) from messages" which is quite intense and we shouldn't run it every minute
This PR may contain changes to configuration options of one of the apps. If you are introducing a breaking change (i.e. the set of options in latest release would no longer be applicable) make sure the original option is preserved with a deprecation note for 2 following releases before it is actually removed. Please also make sure the label |
You can find the image built from this PR at
Built from b05fdb8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, that's a quick win for bug friday! Nice! Thanks!
* archive.nim: reduce the database report interval from 1 to 30 min This counts the number of rows with "select count(1) from messages" which is quite intense and we shouldn't run it every minute * aside cleanup
* archive.nim: reduce the database report interval from 1 to 30 min This counts the number of rows with "select count(1) from messages" which is quite intense and we shouldn't run it every minute * aside cleanup
Description
The main purpose of this PR is to reduce the number of
SELECT count(*) FROM MESSAGES
queries that we make to the databases.Aside from that, I'm just removing some minor leftovers.