大家好,欢迎回到性能调优培训的第22周。上周我谈了SQL Server里的基线,今天我们继续,谈下SQL Server里的等待和I/O延迟统计。当我进行SQL服务器健康检查时,我总会使用这2个维度全局掌握下SQL Server的健康状况。等待统计(Wait Statistics)在SQL Serve...
分类:
其他好文 时间:
2015-08-27 08:16:29
阅读次数:
159
当在查询中使用了function,返回值会受到影响。比如:select count(*) from customers where lower(cust_state_province)='ca';优化器只知道原先列上的统计信息,而不知道被lower函数转后以后的统计信息,列的选择性会受到影响,但是优...
分类:
其他好文 时间:
2015-08-21 15:32:23
阅读次数:
129
默认oracle会收集表中各个列的统计信息,但是会忽略列之间的关联关系。在大多情况下,优化器假设在复杂查询中的列之间是独立的。当where子句后指定了一个表的多个列条件时,优化器通常会将多个列的选择性(selectivity)相乘得到where语句的选择性,导致优化器做出错误判断!Oracle 11...
分类:
其他好文 时间:
2015-08-21 15:26:13
阅读次数:
229
1341 - Aladdin and the Flying Carpet
PDF (English)
Statistics
Forum
Time Limit: 3 second(s)
Memory Limit: 32 MB
It's said that Aladdin had to solve seven my...
分类:
其他好文 时间:
2015-08-21 13:39:49
阅读次数:
145
1370 - Bi-shoe and Phi-shoe
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
Bamboo Pole-vault is a massively popular sport in Xzh...
分类:
其他好文 时间:
2015-08-21 09:33:40
阅读次数:
311
1251 - Forming the Council
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
In a city there are n voters, and m people formed the Go...
分类:
其他好文 时间:
2015-08-21 09:31:54
阅读次数:
312
1149 - Factors and Multiples
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
You will be given two sets of integers. Let's call the...
分类:
其他好文 时间:
2015-08-21 00:13:50
阅读次数:
181
1138 - Trailing Zeroes (III)
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
You task is to find minimal natural number N, so that ...
分类:
其他好文 时间:
2015-08-20 22:39:33
阅读次数:
394
1138 - Trailing Zeroes (III)
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
You task is to find minimal natural number N, so tha...
分类:
其他好文 时间:
2015-08-20 22:39:23
阅读次数:
232
1082 - Array Queries
PDF (English)
Statistics
Forum
Time Limit: 3 second(s)
Memory Limit: 64 MB
Given an array with N elements, indexed from 1 to N. Now you...
分类:
其他好文 时间:
2015-08-20 22:34:20
阅读次数:
209