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

fix: write timeline events to the DB in async batches #2873

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

alecthomas
Copy link
Collaborator

@alecthomas alecthomas commented Sep 27, 2024

This should help reduce timeline writes as a bottleneck.

The batches are in a transaction, whereas ideally we'd use PG's COPYFROM, but that's quite a bit more effort. We can revisit.

@wesbillman this also changes the interface of the timeline service a bit.

@alecthomas alecthomas requested review from stuartwdouglas and a team September 27, 2024 11:25
@alecthomas alecthomas changed the title fix: write timeline events to the DB asynchronously and in batches fix: write timeline events to the DB in async batches Sep 27, 2024
This was referenced Sep 27, 2024
This should help reduce timeline writes as a bottleneck.
@alecthomas alecthomas merged commit 9f72cf6 into main Sep 27, 2024
91 checks passed
@alecthomas alecthomas deleted the aat/async-timeline branch September 27, 2024 12:02
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.

1 participant