Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve search query performance (see #1678)
Description ----------- This pull request improves the search query performance. 1. 792499a moves the word matching into a subselect which seems to help MySQL make better use of the indexes. 2. a2ce8e8 removes the extra counting of wildcards if it is a wildcard-only search because the count is not needed in this case. In my tests with a `tl_search_index` table with about 1.5 million rows it took down a search like `*foo*` from 10 seconds to 1 second, and `*foo* *bar*` from 12 to 1.3 seconds. Commits ------- 792499af Improve search query performance a2ce8e84 Only count wildcard matches if necessary ec39a0cd Merge branch '4.4' into fix/search-query-performance
- Loading branch information