Page MenuHomeSoftware Heritage

common/origin_visits: Optimize get_origin_visit performance
ClosedPublic

Authored by anlambert on Aug 11 2020, 7:05 PM.

Details

Summary

If the latest origin visit matches some search criteria, return it instead of
fetching the whole visits list and searching in it.

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D3762 (id=13235)

Rebasing onto 9924a39bc5...

Current branch diff-target is up to date.
Changes applied before test
commit 0cb8a778600e191fe935a3cb642772144b0d9839
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Tue Aug 11 19:02:51 2020 +0200

    common/origin_visits: Optimize get_origin_visit performance
    
    If the latest origin visit matches some search criteria, return it instead of
    fetching the whole visits list and searching in it.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/322/ for more details.

This revision is now accepted and ready to land.Aug 11 2020, 8:38 PM