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

Implement pipeline mode #311

Open
cachapa opened this issue Mar 3, 2024 · 1 comment
Open

Implement pipeline mode #311

cachapa opened this issue Mar 3, 2024 · 1 comment

Comments

@cachapa
Copy link

cachapa commented Mar 3, 2024

From the PostgreSQL documentation:

Pipeline mode is most useful when the server is distant, i.e., network latency (“ping time”) is high, and also when many small operations are being performed in rapid succession.

@simolus3
Copy link
Contributor

simolus3 commented Apr 9, 2024

Given that all of our operations are asynchronous, I think we are effectively already doing what that documentation describes. You can just queue up multiple operations by not awaiting them directly, and the library will send them with the extended query protocol. The protocol doesn't allow running multiple statements concurrently, but interleaving the parse/bind step and the execute step for different statements should work without any additional setup.

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

No branches or pull requests

2 participants