sgvault db size

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
scaiferw
Posts: 83
Joined: Thu Mar 22, 2012 8:22 am

sgvault db size

Post by scaiferw » Wed May 11, 2016 11:51 am

Good Afternoon;

Our DB Operations team is asking about the size of the sgvault database. Our repository consists primarily of binaries and documentation more than source code.

Is there any way to compress this, and if so can it be done without losing our history/rollback cabability?

Repository Information:
Revisions: 33978
Folders: 10245 (+6445 deleted)
Files: 53760 (+35079 deleted)
Tree Size: 193.6 GB
Disk Space Needed: 387.21 GB
Database Size: 269.06 GB

Thanks,

Rob
Vault Standard Version 5.1.1.19215 -- Windows Server 2008 R2 -- SQL Server 2008 R2

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: sgvault db size

Post by Beth » Wed May 11, 2016 4:00 pm

Some options you have are to either use obliterate to remove things not needed any more (warning: could break Export/Import), or you could separate the data out into multiple servers using our Folder Export Import tool.
Beth Kieler
SourceGear Technical Support

scaiferw
Posts: 83
Joined: Thu Mar 22, 2012 8:22 am

Re: sgvault db size

Post by scaiferw » Thu May 12, 2016 4:48 am

Reading the Repository Information it would appear that there is a high proportion of deleted material - I assume it's still in the db occupying space.

1) Is there a way to mass expunge that deleted material?

2) Are there implications beyond losing the history, which I assume would be the most obvious consequence?

Thanks,

Rob
Vault Standard Version 5.1.1.19215 -- Windows Server 2008 R2 -- SQL Server 2008 R2

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: sgvault db size

Post by Beth » Thu May 12, 2016 9:19 am

Yes, deleted items remain.

1) Obliterate removes deleted items.

2) Obliterate makes Vault Folder Export Import not work due to missing history.

If you're thinking of separating out pieces of the database, I'd suggest doing that first, and then you can obliterate. If you will never use the Export/Import, then feel free to use Obliterate. The one thing with Obliterate and branches is that you can only obliterate the source of the branches last. You can't branch, and then delete the origin of the branch, because it holds the history.
Beth Kieler
SourceGear Technical Support

Post Reply