WC_Admin_Report::enable_big_selects()protected staticWC 1.0

Enables big mysql selects for reports, just once for this session.

Method of the class: WC_Admin_Report{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Report::enable_big_selects();

WC_Admin_Report::enable_big_selects() code WC 8.7.0

protected static function enable_big_selects() {
	static $big_selects = false;

	global $wpdb;

	if ( ! $big_selects ) {
		$wpdb->query( 'SET SESSION SQL_BIG_SELECTS=1' );
		$big_selects = true;
	}
}