I'm calling the vault standard 6.1 API from C# 4. The server is on the local machine. Add, checkin, create folder, all complete in a reasonable amount of time. Checkout takes 1 minute+ sometimes. Doing the checkout from the GUI client takes very little time.
My call to checkout looks like this:
ServerOperations.ProcessCommandCheckout(filePaths, true, true, new GetOptions());
I found this thread, which might suggest that there is a full repository scan going on in order for this checkout to happen:
http://support.sourcegear.com/viewtopic ... 31&t=12274
Is this the problem? Is there some fix for this? I noticed in the thread that a SourceGear person seemed to suggest they had a modified version of the API that didn't have this slowness.
Very slow checkout using API ProcessCommandCheckout
Moderator: SourceGear
Re: Very slow checkout using API ProcessCommandCheckout
Can you enable logging so that we can check the log file?
To enable logging, put this code at the start of your program:
To enable logging, put this code at the start of your program:
Code: Select all
VaultLib.SimpleLogger.Log.EnableClass("all");
VaultLib.SimpleLogger.Log.Enabled = true;
VaultLib.SimpleLogger.Log.LogFilePath = "c:\\logfile.txt"
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Very slow checkout using API ProcessCommandCheckout
I made a test repository with a reasonable number of empty files, and made a small test program that just checks out one file in the root of the repository. Attached is the log file. Notice the 22 second pause from 4:48:33 to 4:48:55. I assume it doesn't take as long because the test repository is not as big.
- Attachments
-
- log.txt
- (38.51 KiB) Downloaded 443 times
Re: Very slow checkout using API ProcessCommandCheckout
How many files are being checked out?
How many files are already checked out before you begin a new check out?
Can you send me a server log that covers from 1/3/2014 4:48:07 PM to 1/3/2014 4:48:56 PM?
How many files are already checked out before you begin a new check out?
Can you send me a server log that covers from 1/3/2014 4:48:07 PM to 1/3/2014 4:48:56 PM?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support