Message 1 of 3
Layer.UpdateFeatures(); Layer.SaveFeatureChanges() is Slow
Not applicable
02-13-2012
01:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am working with the AutoDesk Geospatial platform API to connect to a SQL2008 spatial database. I have my application working but whenever I try to add/update features and save the changes it takes a long time. It takes about 5 seconds which making a user wait five seconds to add a feature is too long.
Is this the right approch to add features or is there another method to update features and then save to the database?
Here is a section of my code:
MgFeatureCommandCollection commands = new MgFeatureCommandCollection();
commands.Add(new MgInsertFeatures(MyPointLayer.FeatureClassName, propcol));
MyPointLayer.UpdateFeatures(commands);
MyPointLayer.SaveFeatureChanges(options);
Any insight would be appricated.
Thanks,
-Troy