Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocking IO call made in AstraDBGraphVectorStore's init #109

Open
cbornet opened this issue Dec 17, 2024 · 0 comments
Open

Blocking IO call made in AstraDBGraphVectorStore's init #109

cbornet opened this issue Dec 17, 2024 · 0 comments

Comments

@cbornet
Copy link
Collaborator

cbornet commented Dec 17, 2024

Even when setup_mode is ASYNC, AstraDBGraphVectorStore spawns a AstraDBVectorStore in SYNC setup_mode:

# for the test search, if setup_mode is ASYNC,
# create a temp store with SYNC
if setup_mode == SetupMode.ASYNC:

Since the setup mode is SYNC, it makes a blocking HTTP call to create the collection.
So when AstraDBGraphVectorStore is instantiated in an async coroutine, this blocks the event loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant