[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 10:16:38 UTC 2010


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

  * status:  new => closed
  * resolution:  => fixed


Comment:

 [16320]

 Memory usage and execution improvements in wpdb. Store and work with
 resources directly, rather than full copies of results. Plugins which
 incorrectly used wpdb->last_result (a private property) will need to shift
 to wpdb->get_results() with no $query. Magic getter is introduced for back
 compat when using PHP5. props joelhardi, fixes #12257.

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


More information about the wp-trac mailing list