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.

Comments

rbrandon’s picture