Replies: 1 comment
-
My suggestion (#291) was to improve the documentation, but if you have no idea how to do this/don't support this, you can just say so. I can use another package 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I want to run a long operation, I would want to do it in a thread to not block the async event-loop. asyncio provides
run_in_executor()
for exactly this. However, it is not clear whether mydatabases.Database
object is safe to use in the thread, and whether there is something I can do to make it work (short of creating a brand newsa.Engine
andsa.Connection
with SQLAlchemy from the original URL. Or maybe onesa.Engine
for the whole thread pool?)Beta Was this translation helpful? Give feedback.
All reactions