|
No the access plan isn't getting updated on each call. It was last saved
at 10:28:05 That's when the program started, it finished at 21:34. I
suppose I cannot count. It only took 11 hours not 12. Haha. I believe
yesterday this sql statement was executed for every active retail item
(20,000 items) and for the past 12 months. So 20,000 * 12 = 240,000 times
the statement ran. After every call to sql statement, I'm executing
updHTMLvar and WrtSection. I know that this would slow the process overall.
Thinking back, this was probably poor design, but it wasn't really intended
to run for all items and all vendors, even though the prompt program allows
the user to do so. But still, I can live with CPU time of 1448 seconds,
cannot live with 11 hours of actual run time. This is what I don't
understand.
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.