|
Posted by Michael Fesser on 11/05/07 08:48
..oO(james@jgoode.co.uk)
>I've written my own database class using PHP's mysql functions, rather
>than using mysqli, and I've added functions to automatically get,
>insert and update.
The old MySQL extension misses some really important features like
prepared statements and native transaction support.
>In the end, it's a lot faster than the built-in
>mysqli, and it didn't take long to write.
Did you test that? Your wrapper class is written in PHP, while the
MySQLi and PDO extensions are written in C and directly call the MySQL
API. Of course there will be some overhead because of the advanced
features (especially in PDO), but I doubt that this makes much of a
difference. What really counts are the queries sent to the DB and the
table structure, not the used interface (IMHO).
Micha
[Back to original message]
|