|
Building index from index is not the same as building index from table data. It normally involves doing preselection on underlying index. If optimizer have chosen to build such index, it obviously decided that this was the fastest way to get a result. You cannot "pre-build" such index, so if you think this is a concern, try to reformulate your query. PS: as a second thought, you can try to build a view, if you can guess what kind of preselection was done. And then address your query to a view, not to original table. Alexei Pytel Sandeep Potnis <potnis@india.com> on 03/07/2000 03:20:24 PM Please respond to MIDRANGE-L@midrange.com To: MIDRANGE-L@midrange.com, "'MIDRANGE-L@midrange.com'" <MIDRANGE-L@midrange.com> cc: Subject: RE: SQL/400 I already have an index on that field. The issue is that its creating an index on index dynamically. How can I avoid that ? Or should I try to avoid that? Appreciate your response. Sandeep ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001 Build a logical over the file keyed by the date field. > -----Original Message----- > From: Sandeep Potnis [SMTP:potnis@india.com] > Sent: Tuesday, March 07, 2000 9:18 AM > To: MIDRANGE-L@midrange.com > Subject: SQL/400 > > Hi, > > I have a table(TableA) with 38 million rows in it. One of the columns is > DATE type and I have an index(XDTIndex) on that column. > > When I run an interactive query with date selection I get an informational > message saying 'Building access path from XDTIndex' > > Can I avoid this by creating this access path in advance ? If so how? > > Thanks > > Sandeep > > ______________________________________________ > FREE Personalized Email at Mail.com > Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001 > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to > MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > david@midrange.com > +---Title: RE: SQL/400
Build a logical over the file keyed by the date field.
-----Original Message-----
From: Sandeep Potnis [SMTP:potnis@india.com]
Sent: Tuesday, March 07, 2000 9:18 AM
To: MIDRANGE-L@midrange.com
Subject: SQL/400
Hi,
I have a table(TableA) with 38 million rows in it. One of the columns is
DATE type and I have an index(XDTIndex) on that column.
When I run an interactive query with date selection I get an informational
message saying 'Building access path from XDTIndex'
Can I avoid this by creating this access path in advance ? If so how?
Thanks
Sandeep
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com?sr=mc.mk.mcm.tag001
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
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.