Re: revision files absurdly large at higher revisions
From: Ryan Schmidt <subversion-2012a_at_ryandesign.com>
Date: Wed, 25 Jan 2012 01:04:57 -0600
On Jan 24, 2012, at 15:18, The Grey Wolf wrote:
> Hello, I'm not quite sure how to properly phrase the subject
It probably has to do with the size of the directory entries, not the changes you're making to the files.
If you add a file, that's recorded as a change to the directory. When you change a file, Subversion stores only the changes you made, not the complete new file, and it stores them compressed. However, when you change a directory (e.g. by adding or removing a file or directory), Subversion records a complete new copy of the directory, and I don't know if it's compressed or not. If the directory has hundreds or thousands of items, that will take some space.
I don't remember if modifying a file counts as a change to the directory, but adding or deleting a file certainly do.
Based on this I would assume you could mitigate the problem by having fewer items in each directory. Create a deeper directory structure from your hash: /A/Ab/username, or even /A/Ab/Abc/username. You should try this out in a testing environment. Either create some test data, or dump your current repository, and then a) load it into a fresh empty repository as-is, and b) transform it into a deeper directory structure using a tool like svndumptool, then load that into a second fresh empty repository. Then see if there is an appreciable size difference.
|
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.