Is it possible to disable autopack?
John Arbash Meinel
john at arbash-meinel.com
Sat Nov 29 01:43:09 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christian Tschabuschnig wrote:
> 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
I'll mention that if you manually run "bzr pack" it will put everything
into a single pack file. At which point, the likelihood of that data to
be moved by an autopack goes way down. So your new files would get
autopacked, but the bulk of your history would not be touched.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkwni0ACgkQJdeBCYSNAAMS7wCfY7/3nMxdUI/lh15Rue9+SSFi
OywAoJKbrWJAFwsnI1ivJ/uFuRGGi1rE
=/x92
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list