|
At risk to my own life and limb I will proffer this.....logical file.
I was always taught that the best practice was to have an un-keyed
physical file with the third-normal form (primary) key on the first
By keeping the physical file itself in an un-sorted sequence, FIFO,good ole days....
that allowed the SQL engine to most effectively handle SQL inquiries
against the physical file. If the physical file was in a sorted
(keyed) order, that slowed down the hash table process over the
physical file before actual processing of the request could begin.
I used those terms because that rule was pre-dating the more widely
accepted standards of tables, indexes, and views within our platform.
Recovery from a crashed system was always best facilitated by not
having "cross-compiled/referenced" physical files and logical files
(in two different libraries), otherwise you had to be sensitive to the
load sequencing when restoring the libraries. The always fun one was
where "physical A in library X has logical B in library Z" as well as
"physical C in library Z has logical D in library X" so no matter
which order you restored libraries X and Z something would fail. Ah, the
system.
Steve M.
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Charles Wilt
Sent: Monday, September 27, 2021 15:13
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: RPGLE native I/O and SQL Tables/Views/Indexes
Brian,
That hasn't been true in the 20 years I've been working on the platform...
The tale as I heard it, there were benefits to having a PF un-keyed
back in
OS/400 v1 (or maybe it was 36/38?) during the recovery of a crashed
--
But that stopped being true long ago...
Charles
On Mon, Sep 27, 2021 at 1:37 PM Brian Parkins
<goodprophet.bp@xxxxxxxxx>
wrote:
Indeed, but for DDS-defined Physical Files (pre-constraints) it was
deemed best practice to define keys in Logical Files - not the
Physical File itself. (Impact of change.)
Thx for calling that out, Charles.
Brian.
On 27/09/2021 17:44, Charles Wilt wrote:
I really hope your standards for SQL Tables have a primary key...
Just like your standards for PF should include a unique key.
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.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.