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

Optimize Async Writes #238

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Optimize Async Writes #238

merged 3 commits into from
Jan 4, 2024

Conversation

qianl15
Copy link
Member

@qianl15 qianl15 commented Jan 4, 2024

This PR groups individual async writes into larger insert batches into Postgres, reducing the number of round trips to the database as well as improving efficiency. Specifically, this PR groups async writes of:

  • Workflow inputs for temporary workflows
  • Workflow final result/status
  • Workflow unflushed and buffered transaction outputs

We can tune the batch size later and implement batching for FDB as well.

@qianl15 qianl15 force-pushed the qian/async-writes branch from c806965 to cd71b63 Compare January 4, 2024 21:11
@qianl15 qianl15 requested a review from a team January 4, 2024 21:31
Copy link
Member

@kraftp kraftp left a comment

Choose a reason for hiding this comment

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

Looks good! Code is intricate, but makes sense, and it replaces code that wasn't working well

@qianl15 qianl15 merged commit e4986c1 into main Jan 4, 2024
2 checks passed
@qianl15 qianl15 deleted the qian/async-writes branch January 4, 2024 22:07
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.

2 participants