launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #13834
[Merge] lp:~stevenk/launchpad/remove-suggested-translations into lp:launchpad
The proposal to merge lp:~stevenk/launchpad/remove-suggested-translations into lp:launchpad has been updated.
Description changed to:
Remove ITranslationsPerson.suggestReviewableTranslationFiles() and the parts of Person:+translations that call it.
The slightly longer story is that in r16208, the query that is at the heart of ITranslationsPerson.getReviewableTranslationFiles() was rewritten to make use of 4 CTEs rather than 10 joins. This dropped it from taking over 1.5 seconds to about 11ms. The new query was written with one assumption at its core -- we have *lots* of pofiles, but translators themselves don't tend to touch many of them, so if we limit there first, we get a small result, and therefore a fast query.
The query in suggestReviewableTranslationFiles() on the other hand, can not abide that assumption at all. The very first thing is does is a anti-join because it wants a list of pofiles that the translator has never touched. This query is incredibly expensive, and I personally don't think it's worth the value of showing maybe 1 suggestion on Person:+translations if the query is going to take over 2 seconds to run -- or worse, cause a timeout.
For more details, see:
https://code.launchpad.net/~stevenk/launchpad/remove-suggested-translations/+merge/131820
--
https://code.launchpad.net/~stevenk/launchpad/remove-suggested-translations/+merge/131820
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~stevenk/launchpad/remove-suggested-translations into lp:launchpad.
References