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

Concurrent queries #18

Open
loicalleyne opened this issue May 14, 2024 · 4 comments
Open

Concurrent queries #18

loicalleyne opened this issue May 14, 2024 · 4 comments

Comments

@loicalleyne
Copy link

Very nice concept, was wondering if you've considered keeping the db connection open and implementing a connection pool to allow multiple queries to run at the same time?

@lmangani
Copy link
Contributor

lmangani commented May 15, 2024

Thanks! Absolutely we could add a session mode with a file as coordinator to make this possible. What's your usecase? I assume you're working with actual db files as opposed to just querying remote parquets, etc?

@loicalleyne
Copy link
Author

The use case I have in mind currently is a lightweight reverse ETL to make aggregated data available to internal tools used by multiple users at once.

@lmangani
Copy link
Contributor

lmangani commented May 19, 2024

We can implement the same method we had in chdb where providing auth produces a semi-persistent query session allowing multiple interactions as opposed to running individual queries. Will add to the roadmap.

PS: If you'd like to PR this feature, please make yourself home! @loicalleyne

@lmangani
Copy link
Contributor

lmangani commented Jun 23, 2024

@loicalleyne this is now partially supported through authenticated sessions which use filesystem storage so it should be fine for reading in parallel (not writing yet, WIP)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants