[wp-trac] [WordPress Trac] #12257: wpdb Scales Badly Due to Unnecessary Copies of All Query Results

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 12 23:48:48 UTC 2010


#12257: wpdb Scales Badly Due to Unnecessary Copies of All Query Results
------------------------------+---------------------------------------------
 Reporter:  miqrogroove       |        Owner:  ryan    
     Type:  defect (bug)      |       Status:  reopened
 Priority:  normal            |    Milestone:  3.1     
Component:  Database          |      Version:          
 Severity:  critical          |   Resolution:          
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by miqrogroove):

 nacin, I took a quick peek at it for you.  (waiting for a phone call here,
 heh).  Looks like $result and $last_result are being confused in the
 patch.  In query() the MySQL error handling comes after the $result
 assignment and before the $last_result assignment, meaning the latter
 should not change unless the query is successful.  Without getting deeper
 into it, I just wonder if you have some queries stepping on each other
 that way.

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


More information about the wp-trac mailing list