Solved

logical vs physical reads

Posted on 2006-11-16
6
930 Views
Last Modified: 2008-03-17
what is the difference between logical reads and physical reads?
0
Comment
Question by:yanci1179
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 300 total points
ID: 17959845
physical reads means the data has been read from disk into memory
logical reads means the the data was already in memory

1 logical reads means 1 page of data, ie 8KB
0
 

Author Comment

by:yanci1179
ID: 17959911
i read that in books online....but it didn't really mean much.  Ideally which one should be lower?
0
 
LVL 32

Assisted Solution

by:bhess1
bhess1 earned 200 total points
ID: 17959980
In a perfect world, physical reads would be equal to the number of data blocks in your database, and all other reads would be logical.  So, by preference logical reads should be the higher of the two.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17960495
perfectly, the physical reads should be 0. also, logical reads as low as possible.
0
 

Author Comment

by:yanci1179
ID: 17960572
let me see if I understand this logical data read from what is already in cache.  if it's not there then it has to read the physical tables and retrieve the data?
0
 
LVL 32

Expert Comment

by:bhess1
ID: 17962141
Absolutely correct.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Server 2012 r2 and SQL 2014 6 34
rolling count by date, hour query 7 30
SQL Query 9 26
DMV Script to find how many times statistics are utilized 2 27
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question