[wp-testers] Wordpress scaling problems

mrmist listswptesters at mist.org.uk
Thu Jan 29 20:44:46 GMT 2009


In message 
<161617690901291054v249c043ch44c56affd3f22bf5 at mail.gmail.com>, Otto 
<otto at ottodestruct.com> writes
>1. Is it a page?  select from wp_posts where post_slug = mypost and
>post_type = page. Nope.
<snip>
>3. Is it a post? select from wp_posts where post_slug = mypost and
>post_type = post. Bingo.

<snip>

Putting the rest of the post to one side for a moment, does WP actually 
do this?

If this is the actual way it works, and not just a bit of poetic 
licence, surely it should just do one query, select from wp_posts where 
post_slug = mypost to determine if the slug being looked for exists as 
an object in wp_posts?

*confused*
-- 
mrmist


More information about the wp-testers mailing list