|
On Tue, Jul 29, 2008 at 12:49 PM, Elvis Budimlic <
ebudimlic@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Build 2 indexes (i.e. CREATE INDEX) if you don't already have keyed lfs
over
these fields:
1) CVCUSN, CVRENN, CVSEQN
2) cdCUSN, cdRENN, cdSEQN, cdstat
The indexes above ought to help the performance of your query.
Elvis, the table for 1) has as its primary key those three fields, followed
by three other fields. The table for 2) has as its primary key the first
three field, but not cdstat.
What is most surprising, as I mentioned in my response to Eric, is that the
interactive query took hours to build an index on the 1) table, but when I
submitted it to batch per the CREATE TABLE ZZZZ AS... it took less than 5
seconds for it to run! What gives?
Really mind boggling.
- Dan
--
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.
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.