|
> Was wondering how folks define PF's when it comes to keyed or not. > Is there something I'm missing when it comes to NOT having the "most > common" field(s) in a PF defined in the PF a key field(s) ? > Then handle the less obvious stuff in LF's ? well, that's what i've always done, but it may be old habits. i've seen some debates on that in the past, and can't remember what the conclusions were.. > Why PF's with NO key fields ? we've had a few we've done that way, when there's no clear index. but normally we make the unique key the index defined with the pf, and use the lf's for alternate views. > Also, I was told YEARS ago (on the S/38) that you should try to keep the > number of LF's over a PF to a minimum, say 3, 4 tops and let your > program handle the level breaks, etc. to help system performance. Even > on the AS/400 there has GOT to be some truth to that just due to the > fact that there aren't a BUNCH of access paths that have to be rebuilt. > I've seen some vendor packages with a hundred LF's over one PF !!!! i would tend to agree. also reorgs take longer! we have a major file in our software that has 5 indexes, and can take up to an hour to rebuild them, based on the cpu and the size of the file. also, when you make maintenance changes to the file, all those indexes have to be maintained. nj +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.