Page MenuHomeSoftware Heritage

Only hit the database once for directory listings
ClosedPublic

Authored by olasd on May 31 2018, 6:29 PM.

Details

Summary

We used to call the database twice for directory listings. We now
special-case the empty directory, which allows us to only call the database
once, saving one round trip on the most used query.

Test Plan

Unit tests updated

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.