Is it possible to disable autopack?

Christian Tschabuschnig tschaboo at gmx.at
Sat Nov 29 01:15:02 GMT 2008


Robert Collins wrote:
> So no, it can't be disabled except by altering the code, because if it
> is disabled repository performance will slowly but surely degrade. Each
> revision data probe will involve N index queries rather than 1 index
> query for the sum of the digits of N.

Ok, i didn't think about the indices.

> You can exclude the contents of obsolete_packs from your backup (but
> backup the existence of the directory - its needed). Note that if you do
> exclude obsolete_packs you will need to be more careful about not
> writing to the bzr repository during a backup (because you may end up
> with pack files that your root index points at that were obsoleted
> during the backup process).

Thank you for that hint.

> I've filed a bug that we don't allow a mechanism to tell bzr a backup is
> in progress. You could abuse that to stop bzr obsoleteing thing
> altogether - but see above, it is definitely not a good idea. You could
> use it to reduce the perceived frequency of pack operations.

Well, i think that would be a really good thing. I could use this trick
until performance degrades notably and let bzr autopack only once in a
while. Also i could decide when this gigabyte-upload happens.

Thanks again.

Christian



More information about the bazaar mailing list