If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Sync Vs Async Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-09, 16:16
db2udbgirl db2udbgirl is offline
Registered User
 
Join Date: Mar 2006
Location: Tuticorin, India
Posts: 100
Question Sync Vs Async Read

Which is more important for best performance in an OLTP and DW system ?

Few blog suggests that Synchronous I/O is best since it scans only the relevant page based on index..as in
DBI :: Brother-Eagle™ Advice :: DB2 Sync Read Percent

While few other blog suggests that Async I/O is better as in
Asynchronous Read activity | db2ude

Any thoughts based on your experience in prod systems ?
Reply With Quote
  #2 (permalink)  
Old 09-03-09, 16:34
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you read the DBI link closely, high Sync is good for OLTP, where high async is good for DW.

Andy
Reply With Quote
  #3 (permalink)  
Old 09-03-09, 16:37
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Brother-Eagle™ Advice

When DB2 has to scan many pages to find result sets, usually because indexes are missing or sub-optimally defined, DB2 uses prefetch I/O which is performed asynchronously. When the percentage of asynchronous I/O is high, then synchronous I/O is low.

When the Synchronous Read Percentage is low, DB2 is doing a lot of scanning to find result sets. Scans occur when indexes are missing or are sub-optimally defined.
I think the statement above is over-simplified to the point where it becomes incorrect. In my view asynchronous I/O is good, unless the "time waited for prefetch" and "unread prefetch pages" are high compared with the read time and the total number of prefetched pages respectively. The ratio of rows selected to rows read is often a better indicator of index access (in)efficiency.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On