I just read this blog about performance considerations in MOSS 2007. Especially the section about SPList object is worth reading in detail.
Using the List.Items.Count should be avoided at any costs. It basically send a very complex and expensive SQL query, especially on large lists. If you need statistics use the List.ItemCount instead which uses the statistics information from SQL Server about the list to provide data. No absolutely correct though.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment