- Learn T-SQL Querying
- Pedro Lopes Pam Lahoud
- 170字
- 2021-06-24 14:38:12
Plan caching and reuse
As we have now established, the process of optimizing a query can consume a large quantity of resources and take a significant amount of time, so it makes sense to avoid that effort if possible whenever a query is executed. SQL Server caches nearly every plan that is created so that it can be reused when the same query is executed again. But not all execution plans are eligible for caching. For example, no DDL statements are cached, such as CREATE TABLE. As for DML statements, most simple forms that only have one possible execution plan are also not cached, such as INSERT INTO … VALUES.
There are several different methods for plan caching. The method we will use is typically based on how the query is called from the client. The different methods of plan caching that will be covered in this section are the following:
- Stored procedures
- Ad hoc plan caching
- Parameterization (Simple and Forced)
- The sp_executesql procedure
- Prepared statements
- Mastering Mesos
- 自動控制工程設計入門
- 火格局的時空變異及其在電網防火中的應用
- 并行數據挖掘及性能優化:關聯規則與數據相關性分析
- 影視后期制作(Avid Media Composer 5.0)
- 大數據安全與隱私保護
- Docker Quick Start Guide
- 統計學習理論與方法:R語言版
- 大數據驅動的設備健康預測及維護決策優化
- Storm應用實踐:實時事務處理之策略
- 邊緣智能:關鍵技術與落地實踐
- Dreamweaver+Photoshop+Flash+Fireworks網站建設與網頁設計完全實用
- Hands-On SAS for Data Analysis
- JRuby語言實戰技術
- 與人共融機器人的關節力矩測量技術