3 comments
Arnold Daniels Says:
I agree PEAR::DB can seriously injure the performance of your application. I did a simple benchmark test looping through 2500 rows. PEAR::DB was actually more than 15x as slow as using mysql functions natively.
Just have a look my comments at: http://www.phpdeveloper.org/news/5169
Brain has done some benchmarking comparing mysql, mysqli and PDO. The results are published on http://dealnews.com/developers/php-mysql.html
PEAR::DB as well as PEAR:MDB2 have the advantage above PDO that you can put it in compatibility mode, which minimizes the number of changes you need to do when switching DBMS. This mode makes the package even slower.
I think that the conclusing should be: If you need application to support multiple DBMS's use PDO, otherwise use mysqli.
Lukas Says:
PDO is not a database abstraction layer .. its just a unified API. However it does little to help you write portable SQL, which is what MDB2 is all about.
Comments are disabled for this post.
Pierre Says:
If any, it should be MDB2 not DB. But the problem remains the same, when all you need is mysql support, even pdo is a wrong choice (yet).