Aşağıdaki SQL kodu ile MS SQL Server bellekte tuttuğu yürütme planlarını (execution plan) ve memory buffer temizleyebilirsiniz.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go | |
checkpoint; | |
go | |
dbcc dropcleanbuffers; | |
go | |
dbcc freeproccache; | |
go |
Bu işlemi sorgu performanslarını test ederken kullanabilirsiniz. Birden fazla sorgunun performans açısından karşılaştırılmasında yürütme planlarının ve memory buffer alanının temizlenip test edilmesi daha doğru bir sonuç verecektir.