]> git.mjollnir.org Git - moodle.git/commit
This is a massive speed increase in journal_get_users_done.
authorgregb_cc <gregb_cc>
Wed, 22 Oct 2003 20:06:44 +0000 (20:06 +0000)
committergregb_cc <gregb_cc>
Wed, 22 Oct 2003 20:06:44 +0000 (20:06 +0000)
commitdcfa857df2847a58424770cf6c5f4438deb5365c
treebf620db6971ab3961e39541f1c1a58eeffffe8af
parent665ec9436df93d2c0599bcf7b225a5045c0adb25
This is a massive speed increase in journal_get_users_done.

The fix requires UNION support in the database.  I've added a simple little
test to see if UNION queries work.

This change very much needs to be tested out by someone using MySQL 3.  If
it tests out there successfully, the supports_union code should be moved out
of this file and into datalib.  Ideally, someone will extend that test and
creatle get_records_union_sql, a function that would split up UNION queries
for databases that don't support them and do an array_merge (and proper
sorting, which is missing from my fix) on the result sets.
mod/journal/lib.php