mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: Use k locations only for basic BF test location (#35380)
Related to #35379 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
143502e708
commit
c0ee25afd8
@ -228,7 +228,7 @@ func (lc *BatchLocationsCache) Locations(k uint, bfType bloomfilter.BFType) [][]
|
||||
})
|
||||
}
|
||||
|
||||
return lc.basicLocations
|
||||
return lo.Map(lc.basicLocations, func(locations []uint64, _ int) []uint64 { return locations[:k] })
|
||||
case bloomfilter.BlockedBF:
|
||||
// for block bf, we only need cache the hash result, which is a uint and only compute once for any k value
|
||||
if len(lc.blockLocations) != len(lc.pks) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user