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 > subpages in index

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-19-11, 08:49
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
subpages in index

hi

This w.r.t type 1 indexes as its outdated, as per doc the leaf pages are broken down to number of subpages and this subpages have index entry, and type 2 indexes don't have subpages, please share how this works and how this is better as compare to type 2 indexes as they don't have subpages,

Please share ur valuable suggestion, as doc don't say much abt this.

regds
Paul
Reply With Quote
  #2 (permalink)  
Old 10-19-11, 09:09
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
on this page
Index structure
you have an overview...
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 10-19-11, 09:12
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
The main benefit of Type 2 indexes is reducing locking problems in the index.
__________________
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
  #4 (permalink)  
Old 10-20-11, 02:44
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
thks guy and marcus reply

But how this works like type 2 indexes is reducing locking compare to type 1 after elimination of subpages, how this work, could pls give a example, or any more light how this work's

redgs
Paul
Reply With Quote
  #5 (permalink)  
Old 10-20-11, 04:17
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
as indicated before :
have you looked at the page, pointed by the link ?
have you read the doc - infocenter - pdf files (performance tuning...reference...)
this is not an sql that you can show a example for.. it is a design-architecture... and explained - maybe not in detail..as this is not always relevant to a user..
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #6 (permalink)  
Old 10-20-11, 07:23
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I don't know the details myself, but one explanation could be this: Physically removing an entry from the index requires some sort of mechanism to close the introduced gap. Closing this gap means you'll have to lock/protect larger parts of the index page. But if you keep the entry where it is and just set a bit/byte to mark the entry as already deleted, you don't have to worry about the mentioned reorganization. Hence, you'll need less locking at that point. Eventually, you'll have to clean up the page at some point in time, but that could be done when multiple deleted index entries are detected and handled together.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 10-20-11, 07:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by Mathew_paul View Post
thks guy and marcus reply

But how this works like type 2 indexes is reducing locking compare to type 1 after elimination of subpages, how this work, could pls give a example, or any more light how this work's

redgs
Paul
Since type 1 indexes are no longer supported in the latest release, and even since 8.1 were automatically converted to type 2 when a reorg was done, I can't imagine why you even care. It is complete waste of time discussing it.
__________________
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