× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Still, a bulk of most problems are I/O. For example we had a process that
ran for over an hour in the morning. We also noticed it generated
thousands of journal transactions. Since we retain our journal entries
for 77 days this was a significant use of disk space. I rewrote the
person's program. Imagine a large transaction file with numerous
transactions per each item number. Now pretend you want to summarize that
by item number. You may:
loop through transaction file
chain summary by item number
if there add amount
if not write item and amount
repeat loop
But when I changed it to:
loop through transaction file sorted by item number
item number change?
write summary record
clear summary
add amount to summary
Repeat loop

Significantly cut down the writes. Significantly reduced the number of
journal transactions. Cut run time down to a few minutes.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.