Before upgrading this client’s site, I upgrade a test installation of the site to make sure everything is okay. I have run into a problem with site search—it’s taking really long for the search results to be returned and that’s the main functionality for this particular section of this web site. Am looking for suggestions as to how to resolve.
I should note two things:
1) I am returning custom fields in the results and not using the {excerpt} tag
2) I updated to build 20070626 before posting this and the problem persists
For purposes of comparison, I searched for the word open with template debugging turned on and have included below the two lines from the debugging where the disparity between the test installation vs. the current site is most pronounced (and yeah, I’m clueless as to what it means so it may be totally useless!):
TEST INSTALLATION:
Elapsed Time: 15.1118
Total Queries: 33
(0.059359) -> Method Called: search_results
(13.647355) -> Data Returned
CURRENT SITE:
Elapsed Time: 2.1350
Total Queries: 30
(0.072668) -> Method Called: search_results
(-0.187190) -> Data Returned
The live site is running Version 1.5.2 Build 20061128
The test installation site is running Version 1.6 Build 20070626
Has something changed in the way the searches are performed? Indexing or something? Is there something I can do to “undo” the slowdown?