[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Size of SVN Transaction vs Actual commit size

From: Andy Levy <andy.levy_at_gmail.com>
Date: Fri, 7 May 2010 06:42:45 -0400

On Fri, May 7, 2010 at 06:26, Ravi Roy <ravi.aroy_at_gmail.com> wrote:
>
>
> On Fri, May 7, 2010 at 3:33 PM, Olivier Sannier <obones_at_free.fr> wrote:
>>
>> Ravi Roy wrote:
>>>
>>> Actual commit size is 1.28 MB and this script gives me 5528 bytes.
>>>  Something wrong with script or there is compression involved or what ?
>>
>> Well, reading the book could have told you that this is expected:
>>
>>
>> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.diskspace.deltas
>
>
>
> Thanks Olivier; but this is just abstract view; I want to compute the
> transaction size based on some predefined value (say 5 MB) and allow commit
> to the repository if transaction size (in case new file commit) is less than
> or equal to this size.
>
> Any idea you have ?

You can't know how large the actual transaction file (assuming you're
using FSFS) will be in the repository until the transaction has been
committed.

There is compression done in the repository, in addition to other
tricks used to reduce space. The "abstract view" you were referred to
is important to understanding how Subversion stores things, so please
don't dismiss it.

What happens if you have a legitimate case for storing something
larger than your arbitrary size limit in the future?
Received on 2010-05-07 12:43:39 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.