- Learn T-SQL Querying
- Pedro Lopes Pam Lahoud
- 157字
- 2021-06-24 14:38:15
Performance
Another reason to leverage parameters is performance. In a busy SQL Server system, particularly one that has a primarily Online Transaction Processing (OLTP) workload, we may have hundreds or even thousands of queries executing per second.
Assume that each one of these queries took about 100 ms to compile and consumed about the same amount of CPU. This would mean that each second on the system, the server could be consuming hundreds of seconds of CPU time just compiling queries. That's a lot of resources to consume in just preparing the queries for execution, and it doesn't leave a lot of overhead for actually executing them.
Also recall that when plans are not reused, the procedure cache can become very large and consume memory that in turn won't be available for storing data and executing queries. In short, a system that spends too much time compiling queries may become CPU- and/or memory-bound and may perform poorly.
- 機器學習實戰:基于Sophon平臺的機器學習理論與實踐
- 亮劍.NET:.NET深入體驗與實戰精要
- Visualforce Development Cookbook(Second Edition)
- Learning Microsoft Azure Storage
- Verilog HDL數字系統設計入門與應用實例
- 基于LabWindows/CVI的虛擬儀器設計與應用
- Getting Started with Oracle SOA B2B Integration:A Hands-On Tutorial
- 圖解PLC控制系統梯形圖和語句表
- Maya 2012從入門到精通
- 構建高性能Web站點
- 電子設備及系統人機工程設計(第2版)
- INSTANT Puppet 3 Starter
- Linux系統下C程序開發詳解
- 網絡服務器搭建與管理
- Learning OpenShift