Description of problem:
copyTrans runs too slowly
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Push from any client with copytrans enabled
It is slow
Slightly less slow
Refactored the copy trans service to perform less database accesses and avoid unnecessary invocations. The copy trans service is also being invoked directly after pushing a resource instead of using a Seam event.
Should be anywhere between 60-80% faster than before based on tests.
Verified in 1.5
Push operations with copytrans now take up to ~30% less time with my test data.
Created attachment 566721 [details]
Proposed inversion of copytrans loops to iterate over TransUnits before locales
Master branch has diverged from this, it is included here for reference (would likely be a messy merge if applied).