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

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 18 14:16:04 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 andreasnrb):

 Since the wpdevel update http://wpdevel.wordpress.com/2010/11/12/if-you-
 were-using-wpdb-last_result-yo/ said to use get_results() instead of
 last_result I thought it would be best that you actually could do that. I
 just removed if query==null return null. In my simple testing it worked
 fine.

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


More information about the wp-trac mailing list