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

Disable write batching for PSQL #5

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

georgeee
Copy link
Contributor

@georgeee georgeee commented Oct 2, 2023

Problem: batches of transactions are accumulated before an EOF of trace file is encountered. Given files are written in parallel by the fetcher, this may lead to potentially indefinite accumulation of batches without commitment.

Solution: disable batching for Postgresql (as it was originally introduced as a necessary optimization for sqlite).

Problem: batches of transactions are accumulated before an EOF of trace
file is encountered. Given files are written in parallel by the fetcher,
this may lead to potentially indefinite accumulation of batches without
commitment.

Solution: disable batching for Postgresql (as it was originally
introduced as a necessary optimization for sqlite).
This change should be accompanied by a trigger in PSQL
Reaosn: quite expensive to support, not much of use
Problem: status handling and metrics recacluclation is very expensive
for the stup of hundreds of nodes.

Solution: move out block trace updates to PSQL triggers, skip doing
updates of distributions.
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