8000 Use PREPARE/EXECUTE statements for applying DML in follow mode. by dimitri · Pull Request #420 · dimitri/pgcopydb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use PREPARE/EXECUTE statements for applying DML in follow mode. #420

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

Merged
merged 5 commits into from
Aug 8, 2023

Conversation

dimitri
Copy link
Owner
@dimitri dimitri commented Aug 7, 2023

When replaying INSERT/UPDATE/DELETE statements, switch to using PREPARE and
EXECUTE at the protocol level (using the libpq functions PQprepare and
PQexecPrepared). When a statement has already been prepared previously in
our session, we then only send the EXECUTE statement.

This should provide nice performance improvements.

See #414.

dimitri added 5 commits August 7, 2023 14:53
When replaying INSERT/UPDATE/DELETE statements, switch to using PREPARE and
EXECUTE at the protocol level (using the libpq functions PQprepare and
PQexecPrepared). When a statement has already been prepared previously in
our session, we then only send the EXECUTE statement.

This shoud provide nice performance improvements.
Avoid using sscand(), use strtoull with a base 16 instead. In passing
clean-up some extra logging.
@dimitri dimitri merged commit d19ae86 into main Aug 8, 2023
@dimitri dimitri deleted the feature/prepare branch August 8, 2023 10:30
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

36BE Successfully merging this pull request may close these issues.

1 participant
0