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

Stats refresh taking more than 2 hours to update #49

Open
ramyaragupathy opened this issue Apr 30, 2020 · 1 comment · May be fixed by #51
Open

Stats refresh taking more than 2 hours to update #49

ramyaragupathy opened this issue Apr 30, 2020 · 1 comment · May be fixed by #51

Comments

@ramyaragupathy
Copy link
Member

Per reports from project managers, stats update for hashtag has not been happening for a while, resulting in stale data. To fix this we made some changes to the DB in January. This involves:

  • Including a vacuum operation with each refresh cycle
  • Remove the 2 hours timeout for each refresh

@dakotabenjamin has made the necessary changes to the script, which will be come through a separate PR. Dakota - can you also please check if the vaccum could be performed concurrently without creating any read/write lock?

cc @danbjoseph @bopercival-hot

@dakotabenjamin dakotabenjamin linked a pull request Apr 30, 2020 that will close this issue
@dakotabenjamin
Copy link

The command run from the housekeeping script is VACUUM (VERBOSE), which is a plain (i.e. not FULL) vacuum operation. Per docs that means it happens without obtaining an exclusive lock.

In addition, the changes that we have made are already live on the production resource, this PR will bring the changes back upstream.

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 a pull request may close this issue.

2 participants