× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm curious (and confused) about the following scenario:

We have an embedded SQL which selects records from a number of files over a number of libraries in order to provide a nationwide view of a business function.

The files are duplicate objects in different libraries, each library representing a state, and of course containing data pertaining to the state represented by the library.

The SQL brings all the data together into one ODP.

I thought we could speed it up by creating an index as advised by the index advisor, but of course an index can only be created over a single table.

However a logical file can be built over a number of files each in different libraries.

If I create the logical however, I understand that SQL will route the request to the CQE instead of the SQE if a logical file is used and we would take a 15-20% hit (according to a tuning red-book I read)

Are there any benefits to using a logical to provide an index or should we just create an index in every library we want to access the file from?


On a more philosophical note:

I get the impression that if we had a pure SQL based environment - in other words if only SQL tables, views, and indexes were used - then a programmer should only create the table required to hold the data, and a DBA would then create the views and indexes required to support the functions required?

Thanks In Advance

Regards,
Mike Pantzopoulos

_________________________________________________________________
Advertisement: Find new & used iPods; designer clothing and more. Join free at http://www.ebay.com.au http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F1%2F705%2D10129%2D5668%2D323%2F4%2F%3Fid%3D3&_t=760348364&_r=Findnew&_m=EXT


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.