|
Interesting thanks Mark!
On Fri, Nov 20, 2009 at 12:07 PM, Mark S. Waterbury wrote:
See my reply to Birgitta's clarification.
As I understand it, the SQL ANSI Standard requires that indexes
cannot be shared if the resulting order records would be
presented would be different because of the sharing. DDS LFs
impose no such restriction. Thus, SQL can share access paths
with identical keys only.
Hope that helps,
Charles Wilt wrote:
That's a new one to me. I always thought SQL indexes could
share another SQL index.
A quick test seems to confirm it, but where is this
documented?
The "conformance to ANSI SQL standards" seems a bit fishy to
me. As I'd expect the sharing to be an implimentation detail
tucked deep inside the OS. I wonder if Chuck or somebody has
more information.
On Fri, Nov 20, 2009 at 10:08 AM, Mark S. Waterbury wrote:
Do not forget about Access Path Sharing.
DDS logical files can "share" access paths (including with
pre-existing SQL indexes), while SQL indexes never share
access paths (due to conformance with ANSI SQL standards,
apparently.)
So it is probably still a "good idea" to create SQL indexes
first, then create any DDS Logical Files, so that those LFs
can potentially share access paths with some of your SQL
indexes.
Birgitta Hauser wrote:
Yep. BTW that's why I wrote "per Default". Sometime ago I
asked Mike Cain something about indexes and page sizes.
He suggested not to talk about the different page sizes
that can be specified since V5R4 for logical files and
SQL indexes. The IBMers will not speak about this subject
either.
Michael_Schutte wrote:
Instead of creating the SQL index first, can I just
specify 64k into the PAGESIZE keyword? FYI our default
in *KEYLEN not 8k.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.