Skip to content

Instantly share code, notes, and snippets.

@elimn
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elimn/21fd07b551d19546706d to your computer and use it in GitHub Desktop.
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
<?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