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

[Enhancement]: Support _async parameter for query() #2343

Open
1 task done
yhmo opened this issue Nov 13, 2024 · 1 comment
Open
1 task done

[Enhancement]: Support _async parameter for query() #2343

yhmo opened this issue Nov 13, 2024 · 1 comment
Labels
kind/enhancement New feature or request

Comments

@yhmo
Copy link
Contributor

yhmo commented Nov 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What would you like to be added?

Add _async parameter for query() interface, just like the other interfaces such as search/insert/load

Currently, the query() always wait the result:

response = future.result()

Why is this needed?

No response

Anything else?

No response

@yhmo yhmo added the kind/enhancement New feature or request label Nov 13, 2024
@yhmo
Copy link
Contributor Author

yhmo commented Nov 14, 2024

We can create a new class AsyncMilvusClient to support python native async/await interfaces.

The pymilvus/asyncio/client/grpc_handler.py in this pr could be helpful:
https://github.com/milvus-io/pymilvus/pull/1273/files

@XuanYang-cn XuanYang-cn added this to the PyMilvus 2.5.0 milestone Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants