Hi,
I'd check when it was adviced for the last time and if it is adviced for a
query or only for statistics information.
If you are working with iNavigator Database, and the queries where executed
by the SQE, you can link to the SQL-Statements that adviced the access path.
If the index is adviced in production and not only for statistics purposes
and not only for adhoc queries (what I suspect), I'd create the index.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von David FOXWELL
Gesendet: Wednesday, July 30, 2008 09:56
An: Midrange Systems Technical Discussion
Betreff: RE: AW: Way to get STRSQL SELECT to run in batch?
I had a quick look.
SELECT * from SYSIXADV where times_advised = (
SELECT max(TIMES_ADVISED) FROM SYSIXADV )
Found a file that has 4 500 000 record and has been advised 2 million times.
Should I be worried about this?
-----Message d'origine-----
De : midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Joe Pluta Envoyé :
mardi 29 juillet 2008 19:08 À : Midrange Systems Technical Discussion Objet
: Re: AW: Way to get STRSQL SELECT to run in batch?
BirgittaHauser wrote:
Check also the adviced indexes. Beginning with V5R4 all adviced
indexes are stored in the system table SYSIXADV in library QSYS2. You
may also use the iNavigator Database to see the adviced indexes.
This is totally awesome. I just took a peek at the SYSIXADV table and it
brought to mind several of the ad hoc queries I've done recently.. very
interesting stuff.
Joe
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.