[wp-trac] [WordPress Trac] #21051: Database query needs optimization - function post_exists

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 23 21:09:26 UTC 2012


#21051: Database query needs optimization - function post_exists
----------------------------+------------------------------
 Reporter:  arpit.tambi.in  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Performance     |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by nacin):

 post_exists() isn't used anywhere in core, but importers make use of it to
 identify if a piece of content that is trying to be imported, was already
 imported previously.

 In general, it should surely not be used. If it is a problem, perhaps we
 can deprecate it and copy its logic into a method of the WP_Importer
 class. Certain importers like the WXR importer could make use of GUIDs.
 Others, not as much.

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


More information about the wp-trac mailing list