Filters whether to split the query.
Description
Splitting the query will cause it to fetch just the IDs of the found posts (and then individually fetch each post by ID), rather than fetching every complete row at once. One massive result vs. many small results.
Parameters
$split_the_querybool- Whether or not to split the query.
$queryWP_Query- The WP_Query instance.
$old_requeststring- The complete SQL query before filtering.
$clausesstring[]- Associative array of the clauses for the query.
wherestringThe WHERE clause of the query.groupbystringThe GROUP BY clause of the query.joinstringThe JOIN clause of the query.orderbystringThe ORDER BY clause of the query.distinctstringThe DISTINCT clause of the query.fieldsstringThe SELECT clause of the query.limitsstringThe LIMIT clause of the query.
Source
$split_the_query = apply_filters( 'split_the_query', $split_the_query, $this, $old_request, compact( $pieces ) );
See https://core.trac.wordpress.org/ticket/57296 for possible use-case.