HomeSoftware Heritage

Only hit the database once for directory listings
6ee2851fedccUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Only hit the database once for directory listings

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

Reviewers: anlambert, Reviewers!

Differential Revision: https://forge.softwareheritage.org/D337

Details

Provenance
olasdAuthored on May 31 2018, 6:23 PM
olasdPushed on May 31 2018, 6:33 PM
Differential Revision
D337: Only hit the database once for directory listings
Parents
R65:d1d1419ebdd2: browse: Slightly improve stylesheets and design
Branches
Unknown
Tags
Unknown
References
tag: phabricator/diff/1084, tag: phabricator/base/1085