mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
update consistency_level
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
ea20ed80bf
commit
7ecc84c89e
@ -327,7 +327,7 @@ class MilvusCDCPerformance:
|
||||
expr=f"timestamp == {latest_insert_ts}",
|
||||
output_fields=["timestamp"],
|
||||
limit=1,
|
||||
consistency_level="Bounded"
|
||||
consistency_level="Eventually"
|
||||
)
|
||||
except Exception as e:
|
||||
logger.debug(f"Query failed: {e}")
|
||||
@ -358,7 +358,7 @@ class MilvusCDCPerformance:
|
||||
expr="",
|
||||
output_fields=["count(*)"],
|
||||
timeout=10,
|
||||
consistency_level="Bounded"
|
||||
consistency_level="Eventually"
|
||||
)
|
||||
tt = time.time() - t0
|
||||
self.target_count = results[0]['count(*)']
|
||||
@ -373,7 +373,7 @@ class MilvusCDCPerformance:
|
||||
expr="",
|
||||
output_fields=["count(*)"],
|
||||
timeout=10,
|
||||
consistency_level="Bounded"
|
||||
consistency_level="Eventually"
|
||||
)
|
||||
tt = time.time() - t0
|
||||
self.source_count = results[0]['count(*)']
|
||||
@ -383,7 +383,7 @@ class MilvusCDCPerformance:
|
||||
previous_count = self.target_collection.query(
|
||||
expr="",
|
||||
output_fields=["count(*)"],
|
||||
consistency_level="Bounded"
|
||||
consistency_level="Eventually"
|
||||
)[0]['count(*)']
|
||||
while not self.stop_query:
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user