This query works, but it takes upwards of 20 seconds to run on a Quad Core dedicated server... How can I optimize this?
$slides=get_posts(
array('post_type' => 'any', 'numberposts' => 5, 'orderby' => 'date', 'order' => 'desc', "tax_query" =>
array(
"relation" => "OR",
array(
"field" => "id",
"terms" => array(36),
"taxonomy" => "category",
"operator" => "IN"
),
array(
"field" => "id",
"terms" => array(36),
"taxonomy" => "music-categories",
"operator" => "IN"
),
array(
"field" => "id",
"terms" => array(36),
"taxonomy" => "video-categories",
"operator" => "IN"
),
array(
"field" => "id",
"terms" => array(36),
"taxonomy" => "mixtape-categories",
"operator" => "IN"
)
)
)
);