Moodle frequent checks 'max_allowed_packet'

Re: Moodle frequent checks 'max_allowed_packet'

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
To work out this sort of thing, you can always check the code. There are only 4 mentions of max_allowed_packet in the entire codebase, and the only one that is not in a string/comment is https://github.com/moodle/moodle/blob/master/lib/dml/mysqli_native_moodle_database.php#L1424

So, before inserting multiple rows in one big query (which I guess the logs code does) then it checks this to ensure that the MySQL settings are OK.
Average of ratings: Useful (2)