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

chore: Minor enhancements #2789

Merged
merged 2 commits into from
Jun 9, 2024
Merged

chore: Minor enhancements #2789

merged 2 commits into from
Jun 9, 2024

Conversation

Ivansete-status
Copy link
Collaborator

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.

This counts the number of rows with "select count(1) from messages"
which is quite intense and we shouldn't run it every minute
Copy link

github-actions bot commented Jun 7, 2024

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 release-notes is added to make sure any changes to the user interface are properly announced in changelog and release notes.

Copy link

github-actions bot commented Jun 7, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2789-rln-v2

Built from b05fdb8

@Ivansete-status Ivansete-status marked this pull request as ready for review June 7, 2024 17:06
Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a 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!

@Ivansete-status Ivansete-status merged commit 31bd6d7 into master Jun 9, 2024
11 of 16 checks passed
@Ivansete-status Ivansete-status deleted the minor-enhancements branch June 9, 2024 21:09
darshankabariya pushed a commit that referenced this pull request Jun 11, 2024
* 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
rymnc pushed a commit that referenced this pull request Jun 20, 2024
* 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
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

Successfully merging this pull request may close these issues.

4 participants