For uniformity with other _add() endpoints (except origin_visit_add).
Noone uses the new signature of snapshot_add except the tests yet,
so it's the perfect time to make this breaking change.
Depends on D1325.
Differential D1329
Make snapshot_add take an iterable of snapshot. vlorentz on Apr 1 2019, 4:23 PM. Authored by
Details For uniformity with other _add() endpoints (except origin_visit_add). Noone uses the new signature of snapshot_add except the tests yet, Depends on D1325.
Diff Detail
Event TimelineComment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/268/ Comment Actions Build is green
Comment Actions If we're doing this, it'd be cleaner to change the SQL logic to actually batch the insertions, rather than doing the loop outside of SQL. Creating temporary tables is fairly expensive and churn on the database catalog is costly (we've been trying to cut it down lately). You'll need to:
Alternatively, you can at least truncate the table rather than dropping it at each loop (but we lose the potential scale benefits of steps 3/4 above). Comment Actions How would you feel about using truncate temporarily, and opening a task to do the right thing later? Comment Actions Build is green Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/276/ Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DJNL/job/tox/83/ Comment Actions Build is green Comment Actions Build is green Comment Actions Just one last comment but I think that's good to go.
Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tox/281/ |