I started managing a new Wordpress website and I've noticed that some queries are taking about 3-4 seconds to execute. I am using Query Monitor plugin to check this.
Anyone with more experience in Wordpress WP_Query could help me with optimizations tips?
new WP_Query(array( 'no_found_rows' => TRUE, 'category__and'=>
array($rozeCategoryID, $aktualeCategoryID), 'posts_per_page' => 9,
'meta_key' => 'nmb-pozicioni-rubrike',
'orderby' => array( 'meta_value_num' => 'ASC', 'modified' => 'DESC' ) ));
This is the function that I have.
P.S The amount of posts is around 130,000.