To enable slow query logging, add 'logslow' => true
to 5
to the 'dboptions' array in config.php.
This will cause slow queries queries over 5 seconds (the 5 can be changed to any number of seconds) to be logged in the 'log_queries' table in the database. This table can also be export and sent to Totara Support.
...