Query separate master files
Our system is designed to separate campgrounds into individual iSeries libraries. Each library contains the same files with the same file structures. While each library contain several files, only three have a significant number of records. Depending on the number of transactions the campground does and how long they've used our system, the three files can be in excess of 1,000,000 records.

Our challenge is querying the separate master files in each library for statistical reports and analysis. We would love to combine all files into one library since the campground number is a key to each record in each file so we already have unique keys.

Our concern is performance. We are on V5R1, moving soon to V5R2, on our 730.

Would our applications suffer if we combined all files into one file in one library where the number of records could easily exceed 500,000,000?


    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts including news, tips, and advice to help you do your job more efficiently and effectively. Stay informed on the hottest topics and biggest challenges faced by IT professionals working with iSeries products and services.

    By submitting your registration information to Search400.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of Search400.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

I have to start off with the answer of "it depends". If your application heavily utilizes keyed access paths to retrieve the data (very few arrival sequence/table scans), then the application should adjust pretty well to the large one file approach.

Your Report Environment performance will depend on how sound your indexing strategy is. Do you have the right set of keyed logical files & indexes in place, so that only a small percentage of the reports use a table scan or create a temporary index? There's a good Indexing Strategy paper on the DB2 UDB for iSeries.

With the large file sizes, you may get some benefit from Encoded Vector Indexes (EVIs) - especially on V5R2, where the maintenance issues with EVI's have been solved. The Indexing Strategy paper also discusses how EVI's can improve the performance of queries and reports.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: tips, tutorials and more.

Check out this online event, Getting the Most out of SQL & DB2 UDB for the iSeries.


This was first published in February 2003