Heh. If you know that the input file contains strictly new records, why
bother with that logic at all?
One of my clients wanted to create a couple of new companies and duplicate
the records of what I'll call his master company for the two new companies.
His software provider quoted him 40 hours for writing code to accomplish
this task. I did it in 4 hours just by knowing a few back door tricks I
learned back in the late 70's. He now has a SEQUEL script that prompts him
for the original company number and his new company number. The script takes
care of the rest.
It uses zero lines of code. One of the programmers at the software provider
asked me to show him how I did it. He starts a new job in January at a
company that already has SEQUEL, and wanted to get a head start. :-))
Paul Nelson
Cell 708-670-6978
Office 409-267-4027
nelsonp@xxxxxxxxxxxxx
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Thursday, December 26, 2013 10:56 AM
To: Midrange Systems Technical Discussion
Subject: RE: SQL created table slows reporting tool
I hear you Paul. I have a tough time explaining to the OVER 40 crowd why
their updates take so long.
They read this huge input file. Instead of summarizing it by the
subtotals and only writing at subtotal time they do a
read
if no record found,
write
else
update
endif
Thus having over a million extra I/O's.
It's like they've never heard of control breaks, total time, etc.
Rob Berendt
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.