[wp-trac] [WordPress Trac] #21663: Use PDO for MySQL queries when PDO is available

WordPress Trac noreply at wordpress.org
Thu Jan 17 18:07:03 UTC 2013


#21663: Use PDO for MySQL queries when PDO is available
--------------------------------------------------+------------------
 Reporter:  scottconnerly                         |       Owner:
     Type:  task (blessed)                        |      Status:  new
 Priority:  normal                                |   Milestone:  3.6
Component:  Database                              |     Version:  3.5
 Severity:  normal                                |  Resolution:
 Keywords:  dev-feedback has-patch needs-testing  |
--------------------------------------------------+------------------

Comment (by deltafactory):

 Supposedly, there are performance gains by using *any* module but the
 original mysql. PHP recommends against using it in their own
 documentation, and it will be deprecated before long.

 I agree that it's important to maintain compatibility, but I'm looking
 forward to performance gains as well.

 I am curious to know how you queried the repository to look for mysql_*
 calls. I have a feeling that scribu is right that this number is inflated
 by older code or older tags.

 Question: What sort of performance impact would be seen by creating legacy
 connection in addition to the PDO/mysqli connection. Wouldn't that be
 enough to allow older code to continue undisturbed?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21663#comment:56>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list