Skip to content

Find latest origin visit status by date instead of visits filtering

Currently, in case of a high number of visits for an origin, this makes the page querying the result crash (with an empty cache). Note that even with a populated cache, the current version could take some time to process.

The following diff opens a function which uses simpler storage api calls to retrieve the most recent visit from a given point in time (with its most recent associated visit status) instead of filtering all visits of an origin to retrieve the information. Hence no longer relying on the cache of all visits for that origin either.

Related to swh/infra/sysadm-environment#3905 (closed)


Migrated from D7078 (view on Phabricator)

Merge request reports