API Get is slower than Fortress client get latest version
Posted: Wed May 27, 2009 7:26 am
Hey, I am currently writing a small application to make use of the Fortress API and get latest version of all files for all repositories.
My code currently looks something like this:
The solution works with each of the repository's files being got to their relevant folder in C:\Workspace.
The problem that I have is that it is taking awfully long to do this. For 90MB of data it is taking over 45 seconds. This may seem fine, but there will be 60 repositories by the end of the setup and we can not wait 45 mins for them to update.
Thanks in advance.
Brendan
My code currently looks something like this:
Code: Select all
VaultRepositoryInfo[] repositoryInfos = ServerOperations.ProcessCommandListRepositories();
foreach (VaultRepositoryInfo info in repositoryInfos)
{
ServerOperations.SetRepository(info);
GetOperations.ProcessCommandGetToLocationOutsideWorkingFolder(new string[] {"$"}, new GetOptions() {MakeWritable = MakeWritableType.MakeAllFilesWritable, Merge = MergeType.AttemptAutomaticMerge, PerformDeletions = PerformDeletionsType.DoNotRemoveWorkingCopy, Recursive = true, SetFileTime = SetFileTimeType.Current}, "C:/workspace/");
}
The problem that I have is that it is taking awfully long to do this. For 90MB of data it is taking over 45 seconds. This may seem fine, but there will be 60 repositories by the end of the setup and we can not wait 45 mins for them to update.
- I first thought that the problem was only happening on first get (the first time the files are copied form the server, but it seems to be consistent in its slowness.
- I notice that the Fortress client is able to finish a get latest version in 1 second. How does it do this?
Thanks in advance.
Brendan