- 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.
- Mastering Matplotlib 2.x
- Word 2000、Excel 2000、PowerPoint 2000上機(jī)指導(dǎo)與練習(xí)
- R Machine Learning By Example
- 計(jì)算機(jī)原理
- Visual C# 2008開發(fā)技術(shù)實(shí)例詳解
- 工業(yè)機(jī)器人入門實(shí)用教程(KUKA機(jī)器人)
- Python Data Science Essentials
- Kubernetes for Developers
- 計(jì)算機(jī)與信息技術(shù)基礎(chǔ)上機(jī)指導(dǎo)
- Extending Ansible
- 基于ARM9的小型機(jī)器人制作
- 3ds Max造型表現(xiàn)藝術(shù)
- ARM體系結(jié)構(gòu)與編程
- 小數(shù)據(jù)之美:精準(zhǔn)捕捉未來的商業(yè)小趨勢
- Artificial Intelligence for Robotics