It appears that around 10 - 15 SQL queries are executed per page just to get the facet settings. There should really only be one per searcher. Lets liik into the FacetapiAdapter::getFacetSettings*() methods to see if we can make them more efficient.

Comments

cpliakas’s picture

Category: task » bug

Changing to a performance bug.

cpliakas’s picture

Status: Active » Needs review
StatusFileSize
new4 KB

The attached patch adds a function that loads all settings associated with a searcher and stored them in a static. That way other functions and methods can leverage this function to get cached settings that prevent multiple calls to the database.

cpliakas’s picture

StatusFileSize
new2.52 KB

Changed function and method names for transparency.

cpliakas’s picture

Status: Needs review » Fixed
cpliakas’s picture

Issue tags: +Performance

Adding "Performance" tag.

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.