MIDRANGE dot COM Mailing List Archive



MIDRANGE-L » January 2013

Re: Index question



By adding "Relational Integrity" (if you don't have it already) the select will be a lot faster. (and your files cleaner)

Tom E Stieger wrote:

Hope this helps.

1. Open System I navigator
2. Expand My AS/400 Connections
3. Expand the server you are connected to
4. Expand Databases
5. Right-Click on the database name for your system
6. Select Run SQL Scripts
7. Paste your SQL into the run SQL scripts
8. Select VisualExplain -> Explain

If any of the above do not exist you will have to configure.install the components.


-Tom Stieger
IT Manager
California Fine Wire



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: Monday, January 21, 2013 9:39 AM
To: Midrange Systems Technical Discussion
Subject: Re: Index question

On 1/21/13 9:19 AM, Alan Campin wrote:

The best way is to use Ops Navigator to run Visual Explain on the SQL Statement and see what it recommends. You can also turn on debug and get more detailed messages in the job log. Visual Explain is the best. You might also check the Index Adviser in Ops Nav to see if it is building any indexes when you run the SQL statement.


I remember that, from the database optimization class I took at IBM Rochester, some years ago. Although, dusting off the workbook from that class, I can't even remember how to get to Visual Explain, assuming I even *can* get to it on *our* box. (And the actual situation is on a customer box, for which we only have TN5250 access.)

I was able to open something called "System i Navigator" on our box (and could probably model the situation there), but is that even the same thing? I don't see anything that looks like a path to Visual Explain.

--
JHHL

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







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2013 by MIDRANGE dot 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 here. If you have questions about this, please contact