• I’m curious… does anyone know if adding additional parameters to query_posts() would improve / degrade performance?

    In other words, could providing criteria to limit the result set speed it up or slow it down.

    According to this site: How expensive is a WHERE clause in MySQL?, it would slow things down.

    So in an attempt to answer my own question… it would best to include only the parameters that make the biggest difference? Quality over quantity of WHERE statements?

Viewing 1 replies (of 1 total)
  • Thread Starter shoffy

    (@shoffy)

    To add to the above… I found that by removing unnecessary parameters from query_posts() that it does speed things up.

    Sweet.

    Now I’m thinking about is what happens if you include an invalid parameter. (i.e. exclude a category ID that doesn’t exist in the database)

Viewing 1 replies (of 1 total)
  • The topic ‘query_posts Performance’ is closed to new replies.