- If you are using SPList.Items.Add, start using SPList.AddItem. Since reference to SPList.Items properly will load list data it will not perform good.
- If you are accessing list, try to use caml query to access it and always use RowLimit and view field properties to limit output to exactly what you want.
- use ContentIterators in place of foreach when you want to iterate list items.
If you have any questions you can reach out our SharePoint Consulting team here.
No comments:
Post a Comment