HomeSoftware Heritage

content_get: Add support for queries by sha1_git

Description

content_get: Add support for queries by sha1_git

Before this commit, the only way to get Content objects from their sha1_git
was to call content_find for each object.
This was obviously neither convenient nor efficient.

Using this endpoint to batch calls reduces the runtime of the git-bare
vault cooker by 30%.

Details

Provenance
vlorentzAuthored on May 10 2021, 9:46 PM
vlorentzPushed on May 11 2021, 2:55 PM
Differential Revision
D5729: content_get: Add support for queries by sha1_git
Parents
rDSTOe3cbd5ee425c: Add endpoint directory_get_entries, to quickly list a directory's entries
Branches
Unknown
Tags
Unknown
References
tag: v0.29.0
Build Status
Buildable 21476
Build 33364: test-and-buildJenkins console · Jenkins