sqlserver索引优化
时间: 2023-10-08 18:09:04 浏览: 117
SQL Server中有一个查询分析优化器,它可以根据where子句中的搜索条件来确定哪个索引能够缩小表扫描的搜索空间,并实现自动优化。在索引优化方面,一般的原则是在条件列、高选择列、排序或搜索列上建立索引。聚集索引查找效率高于非聚集索引查找,非聚集索引查找效率高于非聚集索引扫描,聚集索引扫描效率高于全表扫描。对于where条件后加函数对索引的影响,会影响索引的使用效率。总的来说,SQL Server可以通过查询分析优化器和合理的索引建立来进行索引优化。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [SqlServer索引及优化详解](https://blog.csdn.net/frankaqi/article/details/49408845)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [SqlServer之性能优化-索引与隐式转化](https://blog.csdn.net/cheng_samll_baby/article/details/106556340)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文