The Price of PHP Database Abstraction

Apr 7

The Price of PHP Database Abstraction

PHP Database Functions vs. PEAR::DB vs. ADOdb (and PDO): Joseph Scott does some testing to remind us that while database abstraction layers are nice, there is a performance price to be paid — sometimes an expensive one.

If you need performance over supporting multiple databases and use of PEAR packages that require PEAR::DB (like PEAR::DB_DataObject) then stick with calling the database functions directly. No way to beat that from a performance perspective.

Joseph, how about trying the ADODB PHP extension? According to them:

[It] provides up to 100% speedup by replacing parts of ADOdb with C code. ADOdb will auto-detect if this extension is installed and use it automatically.


Comments

by Joseph Scott,   April 10, 2006 4:27 PM  

I hope to try out the ADOdb extension sometime this week with this same test.

Stay tuned.



Comments are Closed

Thanks to all who participated.

Want to advertise on this site? Contact FM.
rope light Shopping with birddog distributing, inc., gives you access to the lowest prices, the best customer service and the quickest delivery times possible.
Laptop AC Adapter We offer genuine factory direct replacement AC adapters.
Direct TV Deals Direct TV programming deals are varied and include packages containing from 50 channels up to over 250 channels.
Dish Network Get our most popular package, a Dish DVR advantage with free installation and $100 in savings.