RE: [PEAR] DB vs. MDB, a speed issue.
| From: | Lukas Smith | Date: | Sun, 27 Jul 2003 18:50:04 +0000 |
| Subject: | RE: [PEAR] DB vs. MDB, a speed issue. | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-6849@lists.php.net to get a copy of this message | ||
> From: Stan Lemon [mailto:insyder@myrealbox.com]
> Sent: Saturday, July 26, 2003 8:36 AM
> Ok, I'm looking for the fastest way to retreive information out of a
> database, pump it into an array and work from there. I've been useing
> DB, but I'm wondering if MDB is a better route? I pretty much, run
> query, fetchRow, and occasionaly numRows, but that's it. Speed is an
> issue, so I am wondering, do we know which one is faster?
Then using MDB with fetchInto() is the fastest solution.
And keep your fingers away from numRows(). Simply fetch the first row
and check if the value is NULL.
Regards,
Lukas