Everyone knows that the splist object has an attribute Items, which explains this in the document.
THE ITEMS ProPerty of the splist class gets the collection of all items in the list. Remarks Returns a collection of all Item objects in the current List
The Items property returns all the files in a document library, including files in subfolders, but not the folders themselves. In a document library, folders are not considered items. Returns under all the files are not in a document library (document library) Includes its directory.
We are doing a project, using WSS to make a background storage, and now there is about 2G data in the development environment database, which is mainly used by LIST and Document Library sites, there are not more than 1000 List and Document Library, test discovery The performance is extremely poor, and most of each operation takes a few seconds, and later repeated tests found the problem in ---- list.items attribute returned to the time to use 4 seconds, this weakness, this is not a pit People. Later, I changed this property to GetItems (The GetItems Method of the Splist Class Returns A Collection of List Items from the list, on the specified view.)
Specifically I use the Objlist.GetItems (Objlist. Defaultview), and the test results are found to return to the items collection for about 0.3 seconds.
I don't understand ~ all the two similar two operational performance gaps in the same company are smashed.
It seems that the items attribute will not be used in the future, directly Cut