mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
Reduce insert data number for maximum dim search test case (#9737)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
parent
e432fd1955
commit
e5498b051f
@ -1081,26 +1081,27 @@ class TestCollectionSearch(TestcaseBase):
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L2)
|
||||
#@pytest.mark.skip(reason="skip temporarily for debug")
|
||||
def test_search_max_dim(self, nq, auto_id, _async):
|
||||
def test_search_max_dim(self, auto_id, _async):
|
||||
"""
|
||||
target: test search with max configuration
|
||||
method: create connection, collection, insert and search with max dim
|
||||
expected: search successfully with limit(topK)
|
||||
"""
|
||||
# 1. initialize with data
|
||||
collection_w, _, _, insert_ids = self.init_collection_general(prefix, True, default_nb,
|
||||
collection_w, _, _, insert_ids = self.init_collection_general(prefix, True, 100,
|
||||
auto_id=auto_id,
|
||||
dim=max_dim)
|
||||
# 2. search
|
||||
nq = 2
|
||||
log.info("test_search_max_dim: searching collection %s" % collection_w.name)
|
||||
vectors = [[random.random() for _ in range(max_dim)] for _ in range(nq)]
|
||||
collection_w.search(vectors[:nq], default_search_field,
|
||||
default_search_params, 2,
|
||||
default_search_params, nq,
|
||||
default_search_exp, _async=_async,
|
||||
check_task=CheckTasks.check_search_results,
|
||||
check_items={"nq": nq,
|
||||
"ids": insert_ids,
|
||||
"limit": 2,
|
||||
"limit": nq,
|
||||
"_async": _async})
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user