milvus/internal/querynodev2
wei liu c6a1c49e02
enhance: Use Blocked Bloom Filter instead of basic bloom fitler impl. (#33405)
issue: #32995
To speed up the construction and querying of Bloom filters, we chose a
blocked Bloom filter instead of a basic Bloom filter implementation.

WARN: This PR is compatible with old version bf impl, but if fall back
to old milvus version, it may causes bloom filter deserialize failed.

In single Bloom filter test cases with a capacity of 1,000,000 and a
false positive rate (FPR) of 0.001, the blocked Bloom filter is 5 times
faster than the basic Bloom filter in both querying and construction, at
the cost of a 30% increase in memory usage.

- Block BF construct time	{"time": "54.128131ms"}
- Block BF size	                {"size": 3021578}
- Block BF Test cost	        {"time": "55.407352ms"}
- Basic BF construct time	{"time": "210.262183ms"}
- Basic BF size	                {"size": 2396308}
- Basic BF Test cost	        {"time": "192.596229ms"}

In multi Bloom filter test cases with a capacity of 100,000, an FPR of
0.001, and 100 Bloom filters, we reuse the primary key locations for all
Bloom filters to avoid repeated hash computations. As a result, the
blocked Bloom filter is also 5 times faster than the basic Bloom filter
in querying.

- Block BF TestLocation cost    {"time": "529.97183ms"}
- Basic BF TestLocation cost	{"time": "3.197430181s"}

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-05-31 17:49:45 +08:00
..
cluster enhance: make the watch dm channel request better compatibility (#30952) 2024-03-01 16:07:37 +08:00
collector feat: support rate limiter based on db and partition levels (#31070) 2024-04-12 16:01:19 +08:00
delegator enhance: Use Blocked Bloom Filter instead of basic bloom fitler impl. (#33405) 2024-05-31 17:49:45 +08:00
optimizers enhance: support disable search optimization (#32141) 2024-04-16 10:51:20 +08:00
pipeline enhance: unify data generation test APIs (#32955) 2024-05-14 14:33:33 +08:00
pkoracle enhance: Use Blocked Bloom Filter instead of basic bloom fitler impl. (#33405) 2024-05-31 17:49:45 +08:00
segments enhance: Use Blocked Bloom Filter instead of basic bloom fitler impl. (#33405) 2024-05-31 17:49:45 +08:00
tasks fix: query iterator lack results(#33137) (#33422) 2024-05-30 17:51:44 +08:00
tsafe Add ctx parameter for tsafe pkg & NewDelegator method (#27877) 2023-10-26 19:14:10 +08:00
handlers_test.go fix: correct autoindex segment num (#28387) 2023-11-22 11:12:22 +08:00
handlers.go enhance: Merge query stream result for reduce delete task (#32855) 2024-05-27 18:15:43 +08:00
local_worker_test.go enhance: Add metautil.Channel to convert string compare to int (#32749) 2024-05-07 19:13:35 +08:00
local_worker.go fix: panic caused by type assert LocalSegment on Segment (#29018) 2023-12-08 01:50:38 +08:00
metrics_info.go fix: Correct the negative queryable num entities metric (#32361) 2024-04-24 15:55:24 +08:00
mock_data.go feat: Support multiple vector search (#29433) 2024-01-08 15:34:48 +08:00
OWNERS Add OWNERS file for qnv2 (#23196) 2023-04-03 16:22:24 +08:00
server_test.go enhance: Add metautil.Channel to convert string compare to int (#32749) 2024-05-07 19:13:35 +08:00
server.go enhance: Merge query stream result for reduce delete task (#32855) 2024-05-27 18:15:43 +08:00
services_test.go enhance: add the includeCurrentMsg param for the Seek method (#33326) 2024-05-27 10:31:41 +08:00
services.go enhance: Skip return data distribution if no change happen (#32814) 2024-05-17 10:11:37 +08:00