-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_34_STABLE
-
wip-
MDL-60029-master -
Currently, the user/profile/lib.php:profile_load_data API function uses many individual database functions when called for a user. This could be improved by getting most of the data with one call in the API function, and then feeding that data down the calling chain.
The number of calls is dependent on the number of custom fields defined per site.
With any one profile field, there is:
- profile_load_data->get_records
- profile_fieldbase::load_data->get_record x 2
The two get record calls, are repeated for each field, meaning there is 2 * the number of fields database calls for each call to this API function.
With some code improvements, this could be reduced to one call total.
- caused a regression
-
MDL-60824 Invalid User error when add new user
-
- Closed
-