meilisearch/MeiliSearch

Improve the geosearch

Open

#3,377 opened on Sep 9, 2021

 (3 comments) (2 reactions) (0 assignees)Rust (2,542 forks)batch import
help wantedmilliperformance

Repository metrics

Stars
 (57,572 stars)
PR merge metrics
 (Avg merge 11d 20h) (41 merged PRs in 30d)

Description

Multiple things can / should be done to improve the geosearch:

  • Currently, we need to Deserialize the whole RTree in memory before being able to do anything. This consumes a lot of RAM and thus is quite slow. => We should patch rstar to add the possibility to parse the RTree part by part
  • When creating an RTree for the first time we should use the function bulk_load
  • Add the possibility to sort the position by descending order. It will also require to modify rstar

Contributor guide