Page MenuHomeSoftware Heritage

common/archive: Improve lookup_origin_visits performance
ClosedPublic

Authored by anlambert on Apr 12 2022, 4:32 PM.

Details

Summary

Use new method origin_visit_get_with_statuses from storage interface
returning all visits and their statuses instead of querying latest
status for each visit.

Also bump the maximum number of visits per page from 50 to 1000.

Related to T4090

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 D7559 (id=27399)

Rebasing onto 96b38d9936...

Current branch diff-target is up to date.
Changes applied before test
commit 731e01f396c45e1455f66eb94022d0c1bad55d07
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Apr 12 13:43:03 2022 +0200

    common/archive: Improve lookup_origin_visits performance
    
    Use new method origin_visit_get_with_statuses from storage interface
    returning all visits and their statuses instead of querying latest
    status for each visit.
    
    Also bump the maximum number of visits per page from 50 to 1000.
    
    Related to T4090

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

This revision is now accepted and ready to land.Apr 12 2022, 5:37 PM