← Back to team overview

launchpad-dev team mailing list archive

Re: Fwd: Results of Loggerhead Bug Investigation

 

Ian Clatworthy wrote:
> Michael Hudson wrote:
> 
>> Speaking more generally, the problem is the revision cache -- can we
>> make it go away, or at least handle it better?  I always forget why we
>> actually need it, so let's try to recap:
>>
>>  1. Going from revid -> revno.  Loggerhead does this a lot.
>>  2. Going from revno -> revid.  Probably done ~once per page.
>>  3. In History.get_revids_from().  This gets into behaviour territory.
>> Basically it "mainline-izes" a bunch of revisions.  It can probably
>> touch quite a lot of the graph.
>>  4. get_merge_point_list().  I can't remember what this does :(
>>  5. get_short_revision_history_by_fileid().  Just uses it to get the set
>> of all revids in the branch.
> 
> Can my bzr-historycache plugin help? My understanding is that it's less
> useful than before 2a (and may even need some TLC right now) but it's
> designed to partially fix this sort of thing.

Ah yes, that keeps slipping my mind!  Max, please look at historycache
and see if it can help us :-)

We can probably arrange for the branch puller to make sure that every
branch has a populated history cache btw.

Cheers,
mwh




References