MeiliSearch/milli/src
bors[bot] 25123af3b8
Merge #436
436: Speed up the word prefix databases computation time r=Kerollmops a=Kerollmops

This PR depends on the fixes done in #431 and must be merged after it.

In this PR we will bring the `WordPrefixPairProximityDocids`, `WordPrefixDocids` and, `WordPrefixPositionDocids` update structures to a new era, a better era, where computing the word prefix pair proximities costs much fewer CPU cycles, an era where this update structure can use the, previously computed, set of new word docids from the newly indexed batch of documents.

---

The `WordPrefixPairProximityDocids` is an update structure, which means that it is an object that we feed with some parameters and which modifies the LMDB database of an index when asked for. This structure specifically computes the list of word prefix pair proximities, which correspond to a list of pairs of words associated with a proximity (the distance between both words) where the second word is not a word but a prefix e.g. `s`, `se`, `a`. This word prefix pair proximity is associated with the list of documents ids which contains the pair of words and prefix at the given proximity.

The origin of the performances issue that this struct brings is related to the fact that it starts its job from the beginning, it clears the LMDB database before rewriting everything from scratch, using the other LMDB databases to achieve that. I hope you understand that this is absolutely not an optimized way of doing things.

Co-authored-by: Clément Renault <clement@meilisearch.com>
Co-authored-by: Kerollmops <clement@meilisearch.com>
2022-02-16 15:41:14 +00:00
..
documents allow null values in csv 2022-02-03 16:03:01 +01:00
facet update milli with the new parser_filter 2021-11-04 15:02:36 +01:00
heed_codec Simplify word level position DB into a word position DB 2021-10-05 12:15:02 +02:00
search rewrite word pair distance gathering 2022-02-03 15:57:20 +01:00
update Merge #436 2022-02-16 15:41:14 +00:00
asc_desc.rs Refine asc/desc error messages 2021-10-28 14:47:17 +02:00
criterion.rs Change Attribute and Ranking rules errors 2021-11-04 13:19:32 +01:00
error.rs Finally bump grenad to v0.4.1 2022-02-16 15:28:48 +01:00
external_documents_ids.rs Fix ExternalDocumentsIds struct when inserting previously deleted ids 2021-06-30 14:00:01 +02:00
fields_ids_map.rs format the whole project 2021-06-16 18:33:33 +02:00
index.rs get rid of chrono in favor of time 2022-02-15 11:41:55 +01:00
lib.rs store the geopoint in three dimensions 2021-12-14 12:21:24 +01:00
proximity.rs Remove limit of 1000 position per attribute 2021-10-12 10:10:50 +02:00