Comment 3 for bug 526825

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 526825] [NEW] Repository.get_stream_1.19 blocks for a long time before sending

On Wed, 2010-02-24 at 05:20 +0000, Martin Pool wrote:

> As I said, strace shows there is a multi-minute lag before the client
> gets any data from the network, therefore it can't show activity.

My guess is that this is poor performance of the mysql repository on
launchpad - and likely correctable simply by switching to 2a.

Determining what texts to send (and texts are the first chunk of a
stream) requires examining all the inventories to and doing a set
difference - there isn't a partial result available until this is done.
We could look at making that core function a generator and/or special
case this code path, but I'd be very worried about the potential for
regressions in other areas.

-Rob