-
Notifications
You must be signed in to change notification settings - Fork 46
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
perf: use batched inserts for models #73
Conversation
Coalesces multiple inserts into a single statement, e.g. going from
to
|
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.
Nice!
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.
Nice trick! Will test this right now!
I did hit this...
|
More on this. I have reset these jobs a few times and they fail consistently. In the failure cases, they all have blocks with 0 messages in them. (https://filfox.info/en/tipset/126837) I think we just need to handle the empty case with an early return. |
0590c2e
to
a7f7bbe
Compare
Looks great, please merge when ready. I'll try to mention my approvals as being sticky next time when appropriate. |
Don't worry, I was going to merge but hadn't got back to it after fixing up the commits. |
No description provided.