|
-- [ Picked text/plain from multipart/alternative ] I am not sure what the difference in size is between the 100,000 record master file and the reference to a HUGE master file. This ad-hoc reporting you are doing ? Fewer reads [ file accesses] by query the better At 10:14 AM 9/2/2002 +0000, Deepak Deshpande wrote: >Hello everybody, > >I have to create a report of most popular products based on sales amount >in a given period. > >Case 1 >1. Read an OPNQRYF based on a master file (@ 100,000 records in >master file) >2. Write work file based on the selection (@ 1000 records) >3. Read work file with key1 (@ 1000 records) >4. Do some processing >5. Read work file with key 2 (@ 1000 records) >6. Print report > >Case 2 >1. Read an OPNQRYF based on a huge master file >2. Write work file based on the selection (@ 10 records, yes only 10 >records) >3. Read work file with key 1 (@ 10 records) >4. Do some processing >5. Read OPNQRYF based on the same huge master file (Will it read only >1000 records selected by OPNQRYF or read again the whole file?) >6. Print report > >Which is the better option? Reading master file twice OR writing work file >with more records (10 vs. 1000) and read it? > >TIA, >Deepak >_______________________________________________ >This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list >To post a message email: MIDRANGE-L@midrange.com >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l >or email: MIDRANGE-L-request@midrange.com >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-2025 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.