SQL Server Logical/Physical Reads
2014-04-22 18:27
375 查看
Summary Info:
Logical Reads : Reading Data pages from Cache
Physical Reads : Reading Data pages from Hard Disk
Buffer Cach Hit Ratio: (logical reads – physical reads)/logical read * 100%
Logical Reads
Logical
read indicates total number of data pages needed to be accessed from
data cache to process query. It is very possible that logical read will
access same data pages many times, so count of logical read value may be
higher than actual number of pages in a table. Usually the best way to
reduce logical read is to apply correct index or to rewrite the query.
Physical Reads
Physical
read indicates total number of data pages that are read from disk. In
case no data in data cache, the physical read will be equal to number of
logical read. And usually it happens for first query request. And for
subsequent same query request the number will be substantially decreased
because the data pages have been in data cache.
Buffer Cash Hit Ratio
Buffer
hit ratio will be calculated based on these two kinds of read as the
following formula: (logical reads – physical reads)/logical read * 100%.
The high buffer hit ratio (if possible to near 100%) indicates good
database performance on SQL Server level. So use information from
physical read and buffer hit ratio to measure performance in server
level and logical read to measure individual query level
Execess of the Logical Reads tends high memory Usage, there are some ways by which we can Reduce Logical Reads:
1. Improper/Useless/Insufficient Indexes: Indexes should be build on
the basis of data access or retrieval process if any of the indexes is
build on the columns which are not used in a query will leads to High
Logical reads and will degrade the performance while reads and writing
the data....
2. Poor Fill Factor/Page Density: Page use should not be very less. otherwise large number of page will be used for
small amount of data which will also leads to High Logical Reads....
3. Wide Indexes: Indexing on the large number of columns will leads to high logical reads....
4. Index scanning: if query is leads to index scanning on the table then logical reads will be high...
Logical Reads count can be get by using follwoing ways
Below are the ways to check logical Reads:
1. set statistics io on
2. sys.dm_exec_query_Stats
by executing the below statement we can find detailed info about reads/writes
select * from sys.dm_exec_query_Stats
3. SQL Profiler: by executing the sql profiler on that database we can find out logical reads.
Logical Reads : Reading Data pages from Cache
Physical Reads : Reading Data pages from Hard Disk
Buffer Cach Hit Ratio: (logical reads – physical reads)/logical read * 100%
Logical Reads
Logical
read indicates total number of data pages needed to be accessed from
data cache to process query. It is very possible that logical read will
access same data pages many times, so count of logical read value may be
higher than actual number of pages in a table. Usually the best way to
reduce logical read is to apply correct index or to rewrite the query.
Physical Reads
Physical
read indicates total number of data pages that are read from disk. In
case no data in data cache, the physical read will be equal to number of
logical read. And usually it happens for first query request. And for
subsequent same query request the number will be substantially decreased
because the data pages have been in data cache.
Buffer Cash Hit Ratio
Buffer
hit ratio will be calculated based on these two kinds of read as the
following formula: (logical reads – physical reads)/logical read * 100%.
The high buffer hit ratio (if possible to near 100%) indicates good
database performance on SQL Server level. So use information from
physical read and buffer hit ratio to measure performance in server
level and logical read to measure individual query level
Execess of the Logical Reads tends high memory Usage, there are some ways by which we can Reduce Logical Reads:
1. Improper/Useless/Insufficient Indexes: Indexes should be build on
the basis of data access or retrieval process if any of the indexes is
build on the columns which are not used in a query will leads to High
Logical reads and will degrade the performance while reads and writing
the data....
2. Poor Fill Factor/Page Density: Page use should not be very less. otherwise large number of page will be used for
small amount of data which will also leads to High Logical Reads....
3. Wide Indexes: Indexing on the large number of columns will leads to high logical reads....
4. Index scanning: if query is leads to index scanning on the table then logical reads will be high...
Logical Reads count can be get by using follwoing ways
Below are the ways to check logical Reads:
1. set statistics io on
2. sys.dm_exec_query_Stats
by executing the below statement we can find detailed info about reads/writes
select * from sys.dm_exec_query_Stats
3. SQL Profiler: by executing the sql profiler on that database we can find out logical reads.
相关文章推荐
- 关于sqlserver physical schema的一些SQL
- using 40 logical processors based on SQL Server licensing SqlServer CPU核心数限制问题
- Renaming the Physical Filename for Datafiles in SQL Server 2008
- SQL - Unable to open physical file - Operating system error 5: 5(error not found) Microsoft SQL Server: Error 5120
- How to Interpret the "SQL ordered by Physical Reads (UnOptimized)" Section in AWR (文档 ID 1466035.1)
- 关于 SQL Server Compact 3.5 Beta2 的发布
- SQL Server Management Studio Express出现一半中文一半英文的问题
- SQL Server 2008 筛选器报错Microsoft.SqlServer.Management.Sdk.Sfc
- 我安装Microsoft SQLServer 2000时出现问题
- 如何使Microsoft SQL Server的日志文件不会增大
- Microsoft SQL Server 2008中SQL Server服务启动故障问题
- Introduction to SQL Server Reporting Services (SSRS)
- PHP配置MS SQLServer数据库连接
- Introduction to SQL Server 2005 XML
- 解决MS SQL Server 2005 无法远程连接问题
- DBeaver连接MS SQL Server的注意事项
- SQL-Server下载地址
- 如何清除SQL Server Management Studio的最近服务器列表
- Do you have problems with SQL Server jobs?
- Access和SQL-Server数据库数据操作的对比