Page MenuHomePhabricator

Improve performance of two recent commit migrations
ClosedPublic

Authored by epriestley on Nov 14 2018, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 4:31 PM
Unknown Object (File)
Mon, Nov 4, 2:28 PM
Unknown Object (File)
Oct 17 2024, 1:17 PM
Unknown Object (File)
Oct 9 2024, 10:36 AM
Unknown Object (File)
Oct 8 2024, 1:40 AM
Unknown Object (File)
Oct 1 2024, 12:11 PM
Unknown Object (File)
Sep 24 2024, 11:35 AM
Unknown Object (File)
Sep 20 2024, 9:28 PM
Subscribers
Restricted Owners Package

Details

Summary

Ref T13216. See PHI959. These two recent migrations can be expressed more efficiently:

  • When updating commit audit statuses, the field isn't JSON encoded or anything so we can just issue several bulk UPDATEs.
  • When inserting mail keys, we can batch them in groups of 100.
Test Plan

Used bin/storage upgrade -f --apply phabricator:... to reapply patches. Saw equivalent behavior and faster runtimes.

Diff Detail

Repository
rP Phabricator
Branch
mig1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 21143
Build 28743: Run Core Tests
Build 28742: arc lint + arc unit

Event Timeline

Owners added a subscriber: Restricted Owners Package.Nov 14 2018, 5:45 PM
Harbormaster returned this revision to the author for changes because remote builds failed.Nov 14 2018, 5:46 PM
Harbormaster failed remote builds in B21143: Diff 47294!

Stacked on qsprintf() stuff.

This revision is now accepted and ready to land.Nov 15 2018, 3:28 AM
This revision was automatically updated to reflect the committed changes.