Hi all,
I've taken on a massive project for a client recently and now I've hit
some bug fixes that are required (3rd party code). and was just wondering
about peoples opinions / personal findings.
This set of scripts for the section of the project use an ADODB class for
MySQL. I've never used this method before (I wrote a class a while back to
handle my MySQL core code which was mainly a wrapper for various mysql_*()
functions etc). The original query with the ADODB used code was hanging on
retrieving 19k rows. I managed to locate the bug here by introducing a
LIMIT of 1000 which then worked (although obviously a lot of data was
missing, it didn't hang and the results that were expected were
displayed). Removing the LIMIT again produces the hang situation again.
I stripped out that particular piece of ADODB class code and replaced it
with straight-forward mysql_*() calls wich retrieves all the data (all 19k
rows) with no issues whatsoever.
My query, is ADODB known to be slower / more resource intensive than
straight mysql_*() calls via a mysql_connect() connection? Version info
for this is:
* @version V1.20 25 June 2001 (c) 2000, 2001 John Lim
[email address removed]
Unfortunately, due to the bad coding style of this part of the project
(was "off the shelf" purchased code by the client) and the abominal use of
'global', I have a fair amount of work ahead of me I think as now I'm
pulling errors regarding functions of unknown members in other sections
of this code.
Anyways, just looking for opinions of people that may have experienced
this kind of behaviour personally before.
Regards,
Ian
--
Ian.H
digiServ Network
London, UK
http://digiserv.net/
I've taken on a massive project for a client recently and now I've hit
some bug fixes that are required (3rd party code). and was just wondering
about peoples opinions / personal findings.
This set of scripts for the section of the project use an ADODB class for
MySQL. I've never used this method before (I wrote a class a while back to
handle my MySQL core code which was mainly a wrapper for various mysql_*()
functions etc). The original query with the ADODB used code was hanging on
retrieving 19k rows. I managed to locate the bug here by introducing a
LIMIT of 1000 which then worked (although obviously a lot of data was
missing, it didn't hang and the results that were expected were
displayed). Removing the LIMIT again produces the hang situation again.
I stripped out that particular piece of ADODB class code and replaced it
with straight-forward mysql_*() calls wich retrieves all the data (all 19k
rows) with no issues whatsoever.
My query, is ADODB known to be slower / more resource intensive than
straight mysql_*() calls via a mysql_connect() connection? Version info
for this is:
* @version V1.20 25 June 2001 (c) 2000, 2001 John Lim
[email address removed]
Unfortunately, due to the bad coding style of this part of the project
(was "off the shelf" purchased code by the client) and the abominal use of
'global', I have a fair amount of work ahead of me I think as now I'm
pulling errors regarding functions of unknown members in other sections
of this code.
Anyways, just looking for opinions of people that may have experienced
this kind of behaviour personally before.
Regards,
Ian
--
Ian.H
digiServ Network
London, UK
http://digiserv.net/
Comment