Reputation: 247969
I've inherited some code which uses Exchange Web Services to synchronize certain data between Exchange and an external system.
In order to solve some performance problems (including the generation of absurd amounts of transaction log files), I am in the process of rewriting large chunks of it, and I can see that when scanning for items on the Exchange server (with FindItem
), I have the option of searching either for items with a certain value in an Extended Property (creating a search expression using PathToExtendedFieldType
, or for items with a certain item class (which seems to be an unindexed field, so the search expression would have to use PathToUnindexedFieldType
).
Is there a performance difference, or some general guidelines on which of the two to prefer?
Upvotes: 1
Views: 682
Reputation: 2853
How many times are you calling FindItem? If you are constantly calling it with different criteria then the server will create a lot of restrictions (search folders), which would result in the logging you see.
Upvotes: 1