Post
by ablankert » Mon Jan 24, 2005 4:24 pm
With
SET STATISTICS IO
the results are:
Original query:
Table '#tbltreerevfolders__________________________________________________________________________________________________0000000001B2'. Scan count 1, logical reads 58, physical reads 0, read-ahead reads 0.
Table 'tblfolderentries'. Scan count 2654, logical reads 8240, physical reads 0, read-ahead reads 0.
Table 'tblfsobjectversions'. Scan count 2654, logical reads 7973, physical reads 0, read-ahead reads 0.
Table '#6CE1E2A8'. Scan count 1, logical reads 147, physical reads 0, read-ahead reads 0.
SQL Server Execution Times:
CPU time = 47 ms, elapsed time = 14913 ms.
TEST #1:
Table 'tblfolderentries'. Scan count 2654, logical reads 8588, physical reads 0, read-ahead reads 0.
Table 'tblfsobjectversions'. Scan count 5308, logical reads 16653, physical reads 0, read-ahead reads 0.
Table 'tblcheckoutlistitems'. Scan count 1, logical reads 140, physical reads 0, read-ahead reads 0.
Table 'tblfsobjects'. Scan count 1, logical reads 258, physical reads 0, read-ahead reads 0.
Table 'tblusers'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0.
Table '#tbltreerevfolders__________________________________________________________________________________________________0000000001B2'. Scan count 1, logical reads 58, physical reads 0, read-ahead reads 0.
SQL Server Execution Times:
CPU time = 171 ms, elapsed time = 285 ms.
TEST #2:
Table 'tblfolderentries'. Scan count 2654, logical reads 8588, physical reads 0, read-ahead reads 0.
Table 'tblfsobjectversions'. Scan count 5308, logical reads 16653, physical reads 0, read-ahead reads 0.
Table 'tblcheckoutlistitems'. Scan count 1, logical reads 140, physical reads 0, read-ahead reads 0.
Table 'tblfsobjects'. Scan count 1, logical reads 258, physical reads 0, read-ahead reads 0.
Table 'tblusers'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0.
Table '#tbltreerevfolders__________________________________________________________________________________________________0000000001B2'. Scan count 1, logical reads 58, physical reads 0, read-ahead reads 0.
SQL Server Execution Times:
CPU time = 31 ms, elapsed time = 3674 ms.
TEST #3:
Table 'tblfsobjects'. Scan count 2, logical reads 259, physical reads 0, read-ahead reads 0.
Table 'tblcheckoutlistitems'. Scan count 2, logical reads 140, physical reads 0, read-ahead reads 0.
Table 'tblfsobjectversions'. Scan count 5308, logical reads 16689, physical reads 0, read-ahead reads 0.
Table 'tblfolderentries'. Scan count 5048, logical reads 21509, physical reads 0, read-ahead reads 0.
Table '#tbltreerevfolders__________________________________________________________________________________________________0000000001B2'. Scan count 2, logical reads 58, physical reads 0, read-ahead reads 0.
Table 'tblusers'. Scan count 2654, logical reads 5308, physical reads 0, read-ahead reads 0.
SQL Server Execution Times:
CPU time = 205 ms, elapsed time = 2671 ms.
TEST #4:
Table 'tblfsobjects'. Scan count 2, logical reads 259, physical reads 0, read-ahead reads 0.
Table 'tblcheckoutlistitems'. Scan count 2, logical reads 140, physical reads 0, read-ahead reads 0.
Table 'tblfsobjectversions'. Scan count 5308, logical reads 16689, physical reads 0, read-ahead reads 0.
Table 'tblfolderentries'. Scan count 5048, logical reads 21506, physical reads 0, read-ahead reads 0.
Table '#tbltreerevfolders__________________________________________________________________________________________________0000000001B2'. Scan count 2, logical reads 58, physical reads 0, read-ahead reads 0.
Table 'tblusers'. Scan count 2654, logical reads 5308, physical reads 0, read-ahead reads 0.
SQL Server Execution Times:
CPU time = 281 ms, elapsed time = 2447 ms.