Title: Change in function get_sql
Last modified: August 20, 2016

---

# Change in function get_sql

 *  [MicoxJCG](https://wordpress.org/support/users/micoxjcg/)
 * (@micoxjcg)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/change-in-function-get_sql/)
 * I want to suggest a change in function get_sql to better SQL performance.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [MicoxJCG](https://wordpress.org/support/users/micoxjcg/)
 * (@micoxjcg)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/change-in-function-get_sql/#post-2532910)
 * The file is wp-includes/taxonomy.php
 * In my website, with this change, the performance of “category in” and “category
   exclude” or similars are much better.
 * I see some posts in this forum and several blogs suggesting this change when 
   i’ve find a solution to my website performance problem.
 * Thanks.
    Sorry my poor english.
 *  Thread Starter [MicoxJCG](https://wordpress.org/support/users/micoxjcg/)
 * (@micoxjcg)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/change-in-function-get_sql/#post-2532958)
 * The code is:
 * [http://pastebin.com/K2R3EQrP](http://pastebin.com/K2R3EQrP)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Change in function get_sql’ is closed to new replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [performance](https://wordpress.org/support/topic-tag/performance/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 1 participant
 * Last reply from: [MicoxJCG](https://wordpress.org/support/users/micoxjcg/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/change-in-function-get_sql/#post-2532958)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
