mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
fix
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
f50399bc16
commit
6dd90e4419
@ -18,6 +18,7 @@ def main(host="127.0.0.1"):
|
||||
Collection(name=collection_name).drop()
|
||||
fields = [
|
||||
FieldSchema(name="id", dtype=DataType.INT64, is_primary=True),
|
||||
FieldSchema(name="text_no_index", dtype=DataType.VARCHAR, max_length=10000),
|
||||
FieldSchema(name="text", dtype=DataType.VARCHAR, max_length=10000),
|
||||
FieldSchema(name="text_emb", dtype=DataType.FLOAT_VECTOR, dim=768),
|
||||
FieldSchema(name="image_emb", dtype=DataType.FLOAT_VECTOR, dim=768)
|
||||
|
||||
@ -3,7 +3,7 @@ from locust import HttpUser, task, LoadTestShape
|
||||
|
||||
class MilvusUser(HttpUser):
|
||||
host = "http://127.0.0.1:19530"
|
||||
id_range = (10**6) * 0.01
|
||||
id_range = int((10**6) * 0.01)
|
||||
|
||||
@task
|
||||
def query(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user