Very slow checkout using API ProcessCommandCheckout

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

Moderator: SourceGear

Post Reply
awright
Posts: 3
Joined: Fri Dec 20, 2013 11:16 am

Very slow checkout using API ProcessCommandCheckout

Post by awright » Thu Jan 02, 2014 9:22 pm

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.

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

Re: Very slow checkout using API ProcessCommandCheckout

Post by Beth » Fri Jan 03, 2014 9:04 am

Can you enable logging so that we can check the log file?

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

awright
Posts: 3
Joined: Fri Dec 20, 2013 11:16 am

Re: Very slow checkout using API ProcessCommandCheckout

Post by awright » Fri Jan 03, 2014 3:57 pm

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

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

Re: Very slow checkout using API ProcessCommandCheckout

Post by Beth » Thu Jan 30, 2014 9:39 am

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?
Beth Kieler
SourceGear Technical Support

Post Reply