Skip to content
Snippets Groups Projects
Commit ccde0975 authored by vlorentz's avatar vlorentz
Browse files

origin_visit_get_latest: Order by visit id instead of date

This allows both the postgresql and cassandra backends to make efficient
queries by using an index (resp. clustering key) instead of scanning
all visits of the given origin then sorting by date.

This does not affect the results for the last majority of cases,
as ids are always in increasing chronological, unless an origin was
re-loaded from an old archive.
parent 600e87fb
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.
Finish editing this message first!
Please register or to comment