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

Is there any async api for python? #96

Closed
PinappleUnderTheSea opened this issue Nov 23, 2024 · 2 comments
Closed

Is there any async api for python? #96

PinappleUnderTheSea opened this issue Nov 23, 2024 · 2 comments

Comments

@PinappleUnderTheSea
Copy link

Hi, I am using questDB for dumping stream data with async websocket connection. I want to know if there are async framwork in python sdk. Thanks!

@amunra
Copy link
Collaborator

amunra commented Nov 23, 2024

Hi,
For throughput, especially with dataframes, all the communication with the server is implemented in native code.
I've toyed with the idea of providing an async wrapper over it, but there hasn't been overwhelming demand for it, and it has some limitations (like the loss of ability to auto-flush).

You can take a look (check outand try) the prototype in the async_pool branch.

It introduces a pool of senders and allows sending multiple requests in parallel (with true parallelism, sending is still in native code and releases the GIL).

There's also an async API variant there.

PR: #66

PR description is slightly out of date, take a look at the diff.

Feedback would be very welcome.

@PinappleUnderTheSea
Copy link
Author

It is very useful to me !! Thanks

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