zikula / core

Zikula Core Framework
GNU Lesser General Public License v3.0
238 stars 66 forks source link

[Discussion] Loading module variables #2337

Closed nmpetkov closed 7 years ago

nmpetkov commented 9 years ago

Currently variables for all module and pseudo modules are loaded when Zikula core initializes. This happens in line: https://github.com/zikula/core/blob/1.4/src/lib/util/ModUtil.php#L117

This query loads all the table (module_vars) in the memory.

Rows in this table may vary from about 400 to more then 1000 from site to site. Each row can contain simple values, but often in module variables are stored big missives of data, for example HTML blocks, or modules, which use module variables to store data.

In most cases only one module is used to generate current page (pplus core variables). So, this approach can be optimized.

What do you think?

rallek commented 9 years ago

From my point of view it is not true mainly one module is active. If you use Content than you have several modules in use at the same time.

Guite commented 7 years ago

Closed: ModUtil is legacy and not available in 2.x anymore.