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 > what is an extent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-08, 09:50
srihurry srihurry is offline
Registered User
 
Join Date: Sep 2008
Posts: 5
what is an extent

hi

I am new to db2 and i want to know

what is an extent, Extent size and Prefetch size in db2

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 09-24-08, 12:40
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Straight from the Glossary in the DB2 documentation:

extent
An allocation of space, within a container of a table space, to a single database object. This allocation consists of multiple pages.

prefetch
To read data before, and in anticipation of, its use.

I will let you figure whit the sizes mean.

Andy
Reply With Quote
  #3 (permalink)  
Old 09-25-08, 06:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Basically, an extent is how much data DB2 writes or reads to disk at one time.

If prefetching is being used for a particular query (DB2 decides whether to use this based on how much data is needed from disk for that query) then multiple extents are requested at the same time, even before they are actually needed by DB2 (in anticipation that they will be needed very shortly).

An example of prefetch would be if a query is doing a table scan on a large table, DB2 knows that it will eventually need all the pages in memory, so it puts them into memory before the page is actually requested. All DB2 table and index I/O (except for LOB's) are done into or out of memory (bufferpools).

I would recommend that you look in the PDF versions of the manuals for more explanation. They are free to download.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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