This question is related to my issue described here: SharePoint 2010 Performance troubleshooting
On SP 2010: Does anyone knows if there is some performance limitations while using SPListItemVersionCollection?
Scenario: List with 3-4K items with unique item permissions and many versions (~5-60 per item).
When executing:
foreach (SPListItemVersion version in spItem.Versions){...}
It takes just too long...
This code was used in IHttpModule so maybe this is reason why it takes too long but I am wondering if there is some general issue with SPListItemVersionCollection that I am not aware of.