milvus/internal/metastore
congqixia 4021f4478f
enhance: [Cherry-pick] Save collection targets by batches (#31616) (#31655)
Cherry-pick from master
pr: #31616 
See also #28491 #31240

When colleciton number is large, querycoord saves collection target one
by one, which is slow and may block querycoord exits.

In local run, 500 collections scenario may lead to about 40 seconds
saving collection targets.

This PR changes the `SaveCollectionTarget` interface into batch one and
organizes the collection in 16 per bundle batches to accelerate this
procedure.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-03-28 10:25:11 +08:00
..
kv enhance: [Cherry-pick] Save collection targets by batches (#31616) (#31655) 2024-03-28 10:25:11 +08:00
mocks enhance: [Cherry-pick] Save collection targets by batches (#31616) (#31655) 2024-03-28 10:25:11 +08:00
model Record engine version for segment index (#27384) 2023-09-28 18:03:28 +08:00
catalog.go enhance: [Cherry-pick] Save collection targets by batches (#31616) (#31655) 2024-03-28 10:25:11 +08:00
catalog_test.go Refactor RootCoord (#18930) 2022-09-05 13:29:11 +08:00