Skip to content

Load and Insert data #32723

Apr 30, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Just make sure create_index() is called before load(), and load() is called before search().
insert() can be called anywhere.
All of the following workflows are allowed:
(A) create_collection --> insert() --> create_index() --> load() --> search()
(B) create_collection --> create_index() --> insert() --> load() --> search()
(C) create_collection --> create_index() --> load() --> insert() --> search()
(D) create_collection --> insert() --> create_index() --> insert() --> load() --> insert() --> search()

The pymilvus MilvusClient is using the workflow C
https://github.com/milvus-io/pymilvus/blob/f2fac2be3922126c7163936757b31153e7773358/pymilvus/milvus_client/milvus_client.py#L134

Replies: 1 comment 1 reply

Comment options

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

Answer selected by molo6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants