Table 'lead_transaction'. Scan count 10, logical reads 394, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'appt_master'. Scan count 20, logical reads 4532, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
情況2
Table 'lead_transaction'. Scan count 36466, logical reads 117088, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'appt_master'. Scan count 36466, logical reads 195492, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
在情況1個查詢在4秒內被執行時,用於左連接
&
在情況2查詢在3秒內執行,使用外部應用,但邏輯讀取非常高。
那麼每個表演有什麼好處?
1)什麼是CPU統計? 2)向我們展示實際查詢,3)發佈查詢計劃(實際) – RBarryYoung
是的。給我一些時間 – AK47
因爲性能只有1秒差異,所以我想知道第二個查詢是否執行得更好,因爲數據已經在緩存中了。您是否嘗試刷新緩存並*然後*查看查詢的性能。 –