dependencies api: Batch database updates
Created by: efritz
This PR refactors some of the dependency API internals to treat the database a little bit more kindly
Refactor changes include:
-
Returns dependency repos in ascending order of ID rather than descending -
Adds instrumentation to the upsert method in the store -
Makes the worker pool semaphore shared across all requests -
Adds a safety check to the batch inserter returningScanner
(I really confused myself here before I remembered the proper semantics; it was not intuitive) -
Parallelize ListDependencies
Test plan
Unit and integration tests: main-dry-run.