-
Does anyone know if Python SDK of LanceDB Asynchronous? |
Beta Was this translation helpful? Give feedback.
Answered by
wjones127
Mar 11, 2024
Replies: 1 comment 1 reply
-
Currently, it is synchronous (not async). However, the method calls do not hold the GIL. So in async contexts, you should use something like run_in_executor to run the calls in the background and await them on your main thread. However, in the next few weeks we will release a new version of Python SDK with an async API. So soon that will all be unnecessary. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tjtanaa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, it is synchronous (not async). However, the method calls do not hold the GIL. So in async contexts, you should use something like run_in_executor to run the calls in the background and await them on your main thread.
However, in the next few weeks we will release a new version of Python SDK with an async API. So soon that will all be unnecessary.