Page MenuHomeSoftware Heritage

Make the replayer insert objects in batches.
ClosedPublic

Authored by vlorentz on Apr 10 2019, 1:42 PM.

Details

Summary

Follow-up on D1390.

Diff Detail

Repository
rDJNL Journal infrastructure
Branch
replayer-batch-insert
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 5302
Build 7185: tox-on-jenkinsJenkins
Build 7184: arc lint + arc unit

Event Timeline

olasd added inline comments.
swh/journal/replay.py
77

Could we do the batch insertion (which should always succeed in prod) and only fall back to 1 by 1 insertion when a hash collision occurs (which will pretty much only happen when testing)?

swh/journal/replay.py
77

That was my initial idea, but I thought if would never pass your or david's review

77

s/if/it/

This revision is now accepted and ready to land.Apr 10 2019, 5:17 PM
This revision was automatically updated to reflect the committed changes.