NogDog;11035389 wrote:As far as PDO vs. MySQLi, the only significant difference I see is the ability to
When using a mysql database, the one feature that decides the issue for me between pdo and mysqli is named parameters. PDO has them, mysqli doesn't.
NogDog;11035389 wrote:
(unless for some reason one has a performance advantage over the other
I once ran some profiling tests on pdo and mysqli. There is about 0-7% difference with the advantage (sometimes) going to mysqli, depending on what you are doing, and sometimes how you are doing it. But while 7% may seem significant, I came to the conclusion that it isn't. Iirc, using the best mysqli performance vs the worst PDO pefromance (in terms of using slow implementation code for PDO and best possible for mysqli - while the actual SQL queries remaining the same) 1k such queries over 15 minutes would end up taking 2 seconds longer with PDO, out of a total of 900 seconds (15 minutes), or a 2 permille waste. Spending my time writing efficient code and efficient queries will yield a whole lote more. Which takes me back to: named parameters please.