mirror of https://github.com/milvus-io/milvus.git
Create index before load for upgrading test (#21224)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com> Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/21243/head
parent
001536d621
commit
41dee23d55
|
@ -9,7 +9,7 @@ from utils import *
|
|||
def task_1(data_size, host):
|
||||
"""
|
||||
task_1:
|
||||
before upgrade: create collection and insert data with flush, load and search
|
||||
before upgrade: create collection and insert data with flush, create index, load and search
|
||||
after upgrade: get collection, load, search, insert data with flush, release, create index, load, and search
|
||||
"""
|
||||
prefix = "task_1_"
|
||||
|
|
|
@ -9,13 +9,14 @@ from utils import *
|
|||
def task_1(data_size, host):
|
||||
"""
|
||||
task_1:
|
||||
before upgrade: create collection and insert data with flush, load and search
|
||||
before upgrade: create collection and insert data with flush, create index, load and search
|
||||
after upgrade: get collection, load, search, insert data with flush, release, create index, load, and search
|
||||
"""
|
||||
prefix = "task_1_"
|
||||
connections.connect(host=host, port=19530, timeout=60)
|
||||
get_collections(prefix)
|
||||
create_collections_and_insert_data(prefix, data_size)
|
||||
create_index(prefix)
|
||||
load_and_search(prefix)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue