国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > 綜合 > 正文

Common scenarios to avoid in OLTP

2024-07-21 02:46:44
字體:
供稿:網(wǎng)友
Common scenarios to avoid in OLTP

Database Design

Rule

Description

Value

Source

PRoblem Description

1

High Frequency queries having a high number of table joins.

>4

Sys.dm_exec_sql_text

Sys.dm_exec_cached_plans

High frequency queries with lots of joins can be too normalized for high OLTP scalability.

2

Frequently updated tables having # indexes.

>3

Sys.indexes

sys.dm_db_index_Operational_stats

Excessive index maintenance for OLTP.

3

Big IOs

Table Scans

Range Scans

>1

Perfmon object

SQLServer access Methods

Sys.dm_exec_query_stats

A missing index flushes the cache.

4

Unused Indexes.

Index not in Sys.dm_db_index_usage_stats. If an index is NEVER used, it will not appear in the DMV sys.dm_db_index_usage_stats

Avoid Index maintenance for unused indexes.

CPU

Rule

Description

Value

Source

Problem Description

1

Signal Waits

>25%

Sys.dm_os_wait_stats

Time in runnable queue is pure CPU wait.

2

Plan reuse

<90%

Perfmon object

SQLServer Statistics

OLTP identical transactions should ideally have >95% plan reuse.

3

Parallelism: Cxpacket waits

>5%

Sys.dm_os_wait_stats

Parallelism reduces OLTP throughput. CXPACKET indicates that multiple CPUs are working in parallel, dividing up the query in smaller pieces. Ordinarily a well tuned OLTP application would not parallelize unless an index is missing, there is an incomplete WHERE clause, or the query is not a true OLTP transaction.

Memory

Rule

Description

Value

Source

Problem Description

1

Page life expectancy

<300 sec

Perfmon object

SQLServer Buffer Manager

SQLServer Buffer Nodes

Page life expectancy is the average number of seconds a data page stays in cache. Low values could indicate a cache flush that is caused by a big read. Pure OLTP workloads do NOT issue big reads, thus possible missing index.

2

Page life expectancy

Drops by 50%

Perfmon object

SQLServer Buffer Manager

Page life expectancy is the average number of seconds a data page stays in cache. Low values could indicate a cache flush that is caused by a big read. Pure OLTP workloads do NOT issue big reads, thus possible missing index.

3

Memory Grants Pending

>1

Perfmon object

SQLServer Memory Manager

Current number of processes waiting for a workspace memory grant.

4

SQL cache hit ratio

<90%

SQL cache hit ratio falls under 90% for sustained periods of time greater than 60 sec.

It is likely that large scans have to be performed, which in turn flushes out the buffer cache.

IO

Rule

Description

Value

Source

Problem Description

1

Average Disk sec/read

>20 ms

Perfmon object

Physical Disk

Reads should take 4-8 ms without any IO pressure.

2

Average Disk sec/write

>20 ms

Perfmon object

Physical Disk

Writes (sequential) can be as fast as 1 ms for transaction lo

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 昭平县| 黄石市| 大宁县| 龙门县| 河津市| 绥阳县| 疏附县| 金塔县| 胶南市| 德安县| 浮山县| 会泽县| 汨罗市| 西乌珠穆沁旗| 铁岭县| 峨眉山市| 阜阳市| 贵阳市| 合作市| 建昌县| 福清市| 梁平县| 深州市| 三门县| 桐庐县| 建德市| 班戈县| 加查县| 玛纳斯县| 侯马市| 平陆县| 班玛县| 哈巴河县| 英德市| 承德县| 米易县| 博白县| 鹿泉市| 建湖县| 辽源市| 隆林|