Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2024-04-02 10:31:36 +08:00
parent f50399bc16
commit 6dd90e4419
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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):