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_query
bool- Whether or not to split the query.
$query
WP_Query- The WP_Query instance.
$old_request
string- The complete SQL query before filtering.
$clauses
string[]- Associative array of the clauses for the query.
where
stringThe WHERE clause of the query.groupby
stringThe GROUP BY clause of the query.join
stringThe JOIN clause of the query.orderby
stringThe ORDER BY clause of the query.distinct
stringThe DISTINCT clause of the query.fields
stringThe SELECT clause of the query.limits
stringThe 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.