| |
|
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.
|
 |

10-19-11, 08:49
|
|
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
|
|

10-19-11, 09:09
|
|
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
|
|

10-19-11, 09:12
|
|
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
|
|

10-20-11, 02:44
|
|
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
|
|

10-20-11, 04:17
|
|
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
|
|

10-20-11, 07:23
|
|
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
|
|

10-20-11, 07:36
|
|
Registered User
|
|
Join Date: May 2003
Location: USA
Posts: 5,198
|
|
Quote:
Originally Posted by Mathew_paul
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
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|