sanjayjadhav

Changing version is very slow

Discussion created by sanjayjadhav on May 13, 2014
Latest reply on May 19, 2014 by sanjayjadhav
Hello,

I am changing the version in the ArcMap by code and updating the feature classes of all layers/ standalone tables. This way they point to the data on the new version.

I have referred the code at this URL :
http://edndoc.esri.com/arcobjects/8.3/Samples/ArcMap/Versioning/Change%20Current%20Version%20in%20ArcMap/clsChangeVersionUtil.htm

Now everything is fine however the performance is very bad. It is taking a lot of time,10-12 seconds when I do this for the first time. After that, it takes very less time may be 3-4 seconds.

I am using ArcGIS 10.2.1.

So any help on this issue is highly appreciated. If anybody points me in the right directions for finding the cause behind this, it will be very helpful.

It seems that the problematic code is the function, ChangeFeatureLayers() in that code. This method consumes the largest time of the total time.

Thanks,
S.

Outcomes