quackpipe icon indicating copy to clipboard operation
quackpipe copied to clipboard

Concurrent queries

Open loicalleyne opened this issue 9 months ago • 4 comments

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?

loicalleyne avatar May 14 '24 16:05 loicalleyne

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?

lmangani avatar May 15 '24 09:05 lmangani

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.

loicalleyne avatar May 18 '24 00:05 loicalleyne

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 avatar May 19 '24 21:05 lmangani

@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)

lmangani avatar Jun 23 '24 10:06 lmangani