平時不怎麼留意數據庫相關的東西,看到這篇文章,感覺不錯:
《Speed Up SQL Server APPS》Learn 10 useful tips and tricks that help boost SQL Server application performance—and streamline development and deployment as well
下面列舉文章中的10條技巧:
1) Replace COUNT(*) With EXISTS When Checking for Existence
2) Be Careful When Using WHERE IN and WHERE NOT IN
3) Randomize Resultset Orders With NewID()
4) Increase Default Packet Size for Large Data FIElds
5) Name Your SQL Server Applications
6) Utilize SQL Server Aliases
7) Disable Triggers Instead of Dropping Them
8) Don''t Rename Script-Based Objects
9) Don''t Trust Generated Table Modification Scripts
10) Examine Your APPS With SQL Server Profiler