mlorenz has asked for the wisdom of the Perl Monks concerning the following question:
That's the gist of the query, and I've used logging statements to track the slowness to the $sth->execute() command:my $sql = "SELECT o.objectid, <other fields> FROM object o WHERE o.accountid = " . $accountid . ORDER BY o.objectname LIMIT 20 OFFSET 0"; my $object_info_ref = undef; eval { my $sth=$dbh->prepare($sql); $sth->execute(); $object_info_ref = $sth->fetchall_arrayref(); $sth->finish(); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI execute is slow?
by peter (Sexton) on Feb 27, 2008 at 20:41 UTC | |
|
Re: DBI execute is slow?
by erix (Prior) on Feb 27, 2008 at 20:50 UTC | |
|
Re: DBI execute is slow?
by nedals (Deacon) on Feb 28, 2008 at 04:16 UTC | |
by runrig (Abbot) on Feb 28, 2008 at 07:15 UTC |