RE: Perl script excessively executing statement

2020-02-17 Thread JohnD Blackburn
After reviewing the log4perl output from DBIx when running this script I found the following perl module being executed: /usr/local/lib64/perl5/DBD/Oracle.pm Which contains the following subroutine: sub execute_for_fetch { my ($sth, $fetch_tuple_sub, $tuple_status) = @_; my

Re: Perl script excessively executing statement

2020-02-17 Thread Christopher Jones
On 18/2/20 9:51 am, JohnD Blackburn wrote: The problem is not about how well the SQL runs. It runs in less than a second, and it should only be getting executed 12 times an hour. What I'm trying to do is to figure out how the SQL statement got executed 1000 times more than it should have

RE: Perl script excessively executing statement

2020-02-17 Thread JohnD Blackburn
The problem is not about how well the SQL runs. It runs in less than a second, and it should only be getting executed 12 times an hour. What I'm trying to do is to figure out how the SQL statement got executed 1000 times more than it should have done (which brought the db to its knees for 50

Re: Perl script excessively executing statement

2020-02-17 Thread Steven Lembark
On Thu, 13 Feb 2020 06:58:37 + JohnD Blackburn wrote: > The DBA pulled info from some cache that showed the SQL statement > from the script was executed 12610 times. > > So if I were to add an “or die $!” statement after the > fetchrow_array(), that might fix things? (or prevent it from