[wp-trac] [WordPress Trac] #19225: WordPress-Importer : Perform less database queries when backfilling attachment urls

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 10 17:35:28 UTC 2011


#19225: WordPress-Importer : Perform less database queries when backfilling
attachment urls
-------------------------------------+----------------------------
 Reporter:  tott                     |       Owner:  duck_
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  WordPress.org
Component:  Import                   |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+----------------------------

Comment (by duck_):

 A couple of other thoughts:

  * $from_url should be run through like_escape() before being put in the
 query
  * Can we retrieve post_content in the first query rather than using
 get_post() as well? Would this be beneficial?
  * $wpdb::update() can be used instead of using the query() method

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


More information about the wp-trac mailing list