Skip to content

Is Python SDK of LanceDB Asynchronous? #1067

Answered by wjones127
tjtanaa asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tjtanaa
Comment options

Answer selected by tjtanaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants