labels in Vault 4.1.4

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

Moderator: SourceGear

Post Reply
muppal
Posts: 22
Joined: Sat Jan 31, 2009 12:18 pm

labels in Vault 4.1.4

Post by muppal » Mon Feb 02, 2009 12:55 pm

HI - I have some users that want to create a label on a folder tree before the start of every build, the label being the date/time of the build. This gives them the ability to get a get latest on the label and have the tool resolve differences. My questions are
1) Can I do this using the command line options?
2) Will this add a lot of overhead to the database (size)
3) Can we filter out the build labels on a “Show History” for a particular folder or file without filtering out the base line labels.

Any guidance would be much appreciated.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: labels in Vault 4.1.4

Post by lbauer » Mon Feb 02, 2009 1:57 pm

Yes, many of our users label each build. You can have your build script run the Vault command line client Label command:

http://download.sourcegear.com/misc/vau ... .htm#LABEL

This does add some additional overhead to the database, but unneeded labels can be deleted later.

The History filter or Show Labels command will not differentiate between Build labels and other labels. but you may be able to add a comment when you label, and then later do a history query on that comment. This wouldn't owrk on recursive labels, however.
Linda Bauer
SourceGear
Technical Support Manager

muppal
Posts: 22
Joined: Sat Jan 31, 2009 12:18 pm

Re: labels in Vault 4.1.4

Post by muppal » Tue Feb 03, 2009 2:42 pm

A couple of more questions:
When a label is deleted is it actually removed from the database? Is there anyway to quantify the impact of adding a label and removing a label on the database??

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: labels in Vault 4.1.4

Post by lbauer » Tue Feb 03, 2009 3:57 pm

The label size is dependent on how many items are in a particular label.

I have a 29MB test database with 134 folders and 549 files. When I added 4 labels on the root folder, it added 1 MG to the database data file.
Linda Bauer
SourceGear
Technical Support Manager

muppal
Posts: 22
Joined: Sat Jan 31, 2009 12:18 pm

Re: labels in Vault 4.1.4

Post by muppal » Wed Feb 18, 2009 10:22 am

Is there a way to search which tables/indexes are changed to determine the size difference/impact that adding a label has on a folder in a repository?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: labels in Vault 4.1.4

Post by lbauer » Wed Feb 18, 2009 3:16 pm

Before we go further it would be good to know how you need to use this information. Are you concerned about increasing the size of your database?

Do you want to determine which items to label, or which labels to delete?
Linda Bauer
SourceGear
Technical Support Manager

Post Reply