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

github_event table has no indexes #34

Closed
DanCech opened this issue Jul 8, 2021 · 0 comments · Fixed by #35
Closed

github_event table has no indexes #34

DanCech opened this issue Jul 8, 2021 · 0 comments · Fixed by #35
Labels
type/bug Something isn't working

Comments

@DanCech
Copy link
Contributor

DanCech commented Jul 8, 2021

The github_event table does not have any indexes, which means that DELETE operations are very slow when the table has more than a few thousand rows. This results in the githubstats-parser job timing out, and log entries like:

lvl=eror msg="failed to process event" logger=archive-downloader error="Error 1205: Lock wait timeout exceeded; try restarting transaction" skip=false

This can be remedied by setting id as the primary key for the table.

@marefr marefr added the type/bug Something isn't working label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants