-
Notifications
You must be signed in to change notification settings - Fork 460
Description
Is your feature request related to a problem? Please describe.
Currently tortoise only uses 1 concurrent database connection instead of multiple ones, meaning that one expensive database query can lock up tortoise and cause all other database related things to be halted for a while
Describe the solution you'd like
I looked into making this possible but i don't know enough of the tortoise internals to be sure of all the places that need to be edited
ideally it would also have mode/way to "group" database intensive queries and force them to queue up and share the same connection so the entire pool doesn't get used up waiting for expensive lookups to be completed. or is this something that i should be building into my side of things?
Describe alternatives you've considered
For now using it with only 1 connection works but for my usecase could cause a lot of bottle-necking down the line
Additional context
I have an 8GB table containing a non-indexed varchar(2000) and would like to be able to filter based on this field as well. however this requires a full tablescan and takes a while. while this is running, no other database interaction using tortoise is possible, blocking other functionality from completing in a timely manner