Artifact Links

Topics: Service Factory Modeling Edition Forum
Mar 15, 2010 at 2:57 PM

I have a data contract model with about 100 objects, and these have many aggregation connections between each other. When I right click to bring up the Generate Code option, it'll take like an hour for it to come up. I've debugged the code and it has to do with the ModelCollector.GetArtifacts, which eventually calls the AtrifactLinkCollector.Collect . Inside that it cycles through the ArtifactLinkContainer's ArtifactLinks . It's the call to the ArtifactLinks property that causes the slowdown. For many of the model elements, accessing the ArtifactLinks property ends up returning like 150,000 artifact links.

I have another data contract model with about 100 objects but with hardly any aggregration links and it's fast.


Mar 15, 2010 at 7:14 PM


Thanks for the feedback! We already identified this issue and we are working on a fix for the new version (VS2010) that will be public soon after VS10.

Meanwhilwe you can try splitting the DC model in order to mitigate the workload of the ALinks collector.