Last active
August 29, 2015 14:09
-
-
Save elimn/21fd07b551d19546706d to your computer and use it in GitHub Desktop.
MT | TEC | Allow "SQL_BIG_SELECTS", improving database performance on some MySQL configurations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Allows "SQL_BIG_SELECTS", improving database performance on some MySQL configurations | |
function tribe_allow_large_joins(){ | |
global $wpdb; | |
$wpdb->query('SET SQL_BIG_SELECTS=1'); | |
} | |
add_action('init', 'tribe_allow_large_joins'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment