平时不怎么留意数据库相关的东西,看到这篇文章,感觉不错:
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
无奈英文太差,只能就着金山词霸看