Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM2011: Performance issue with plug-in on SetState

$
0
0

Hi,

I have plug-in, that triggers on SetState of a custom entity. Basically it creates a successor and a bunch of related records (modifications of the original ones). The original record is not manipulated in the plugin.

The plugin is registered synchronous, post stage. There are no further Plug-Ins handling that entity or any of the related entity that are created during that process.

When I test the plug-in isolated (that is mocking the context using Rhino.Mock but passing a real OrganizationServiceProxy) it takes about 5.5 seconds. Not very fast, but OK regarding the heavy work done.

Setting the state of the custom entity in code with the plug-in deactivated takes about 0.8 seconds.

Now setting the state with the plug-in activated takes more than 90 seconds!

Anybody has an idea, what makes it so extremely slow (about 14 times slower than SetState + plug-in isolated)? I'm desperately looking for any ideas here.

In Addition, it get's that slow, when more than about 90-100 of those custom entities are related to a contact, when I change the state for one of those contact's entities.


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>