-
Improvement
-
Resolution: Fixed
-
Minor
-
4.2.2
-
MOODLE_402_STABLE
-
MOODLE_404_STABLE
-
MDL-79619_master -
During performance testing on a large site, I found that web service calls to core_message_send_instant_messages were holding long session locks. While calls were not very common, and only a small proportion of locks in my analysis, they had a high median lock time of about 7 seconds.
I tested setting 'readonlysession' => true in the web service defintion and $CFG->enable_read_only_sessions_debug = true, and was able to send bulk messages using this web service without generating any errors.
I propose adding 'readonlysession' => true to this web service in lib/db/services.php