mirror of https://github.com/milvus-io/milvus.git
enhance: speed up loading with many deletions (#29455)
the executor always fetches the latest segment info, so we could consume from the latest checkpoint, which could save much time while deleted many entities Signed-off-by: yah01 <yang.cen@zilliz.com>pull/29468/head
parent
ae180d1628
commit
1d6bcd1ded
|
@ -194,9 +194,9 @@ func (ex *Executor) loadSegment(task *SegmentTask, step int) error {
|
||||||
indexes = nil
|
indexes = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
channel := ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.CurrentTarget)
|
channel := ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.NextTarget)
|
||||||
if channel == nil {
|
if channel == nil {
|
||||||
channel = ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.NextTarget)
|
channel = ex.targetMgr.GetDmChannel(task.CollectionID(), segment.GetInsertChannel(), meta.CurrentTarget)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get collection index info
|
// Get collection index info
|
||||||
|
|
Loading…
Reference in New Issue