]> git.mjollnir.org Git - moodle.git/commit
datalib:add_to_log() - avoid schema lookups, pace updates to user and user_lastaccess
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:01:04 +0000 (07:01 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:01:04 +0000 (07:01 +0000)
commita9fcd13a771206dd36fef12a3e0a79a5bac12bb2
tree23f9e02e1e36d285a4b274ba593de4de30db64cf
parente1e1f498201f8852755cbbbfc5eeb7f476bca1cd
datalib:add_to_log() - avoid schema lookups, pace updates to user and user_lastaccess

* All updates to user.lastaccess and user_lastaccess.timeaccess are paced to
60s of the last update on the same record -- this should reduce the heat
on those tables.

* Updates/inserts to user_lastaccess are down with raw SQL to avoid costly
schema lookups on every request.
lib/datalib.php