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.

_______________________________________________
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help   : https://help.launchpad.net/ListHelp

Reply via email to