-
Sub-task
-
Resolution: Unresolved
-
Minor
-
None
-
2.0
-
None
-
MOODLE_20_STABLE
Improve performance of the module using less DB queries whenever possible.
The following techniques are available:
1. Use one get_records instead of several subsequent get_record call
2. Loading used plugins and their settings in model class instance (once and in one DB call), etc (i.e. answer type class doesn't work with DB directly, epecially with settings, it receive (returns) necessary data instead, so other classes could do that in one transaction with DB if possible)
3. Cashing often needed data from DB in the model class