Needs review
Project:
Spaces
Version:
6.x-3.2
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Dec 2011 at 19:40 UTC
Updated:
19 Dec 2011 at 19:41 UTC
Jump to comment: Most recent file
A simple change that eliminates a costly db query.
In spaces_controller_variable->init_overrides() calls are made to:
load_original_values, load_preset_values, load_space_values
Since load_preset_values makes attempts to load a space override it eliminates a costly call to the spaces_override table with an individual variable name if you reverse the load statements.
Patch Attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1376482-1-spaces_controller_variable_performance.patch | 1.04 KB | rbrandon |
Comments
Comment #1
rbrandon commentedPatch: