Skip to content
Snippets Groups Projects
Commit d34b474f authored by Daniel Bimschas's avatar Daniel Bimschas
Browse files

HOLI-9524: use index and fix distance calculation

* query now (implicitly) uses the HNSW index on embedding_array
* query now uses the `<#>` operator to sort by distance which can (and will) take advantage of the
  index for the newly introduced `location_gps` column which combines (`longitude`,`latitude`) into
  a PostGIS geometry
* distance calculation is fixed - it calculated before with two different units (distance in
  "angle" (RSID 4326) vs. distance in meters (RSID 3857, Pseudo-Mercator plane projection))
parent fa7cf1f3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment