moodle/message
Neill Magill a8d9b17b4b MDL-63983 messaging: Improve the performance of non-contact searches
When the messagingallusers setting is disabled only contacts that are
on the same course as the user should be returned as results.

We can reduce the number of candidate users significantly by
pre-filtering them by being enrolled on the same courses as the user
performing the search.

Since we must also return the user themselves sometimes, even when they
are not enrolled on a course I used a UNION as the most efficient way of
retriving them, this meant that the order by had to reference returned
columns by number to be sufficiently cross-database compatiable.
2021-10-28 10:56:38 +01:00
..
amd MDL-72013 js: Fix jsdocs to meet stricter eslint 2021-10-21 13:28:00 +08:00
classes MDL-63983 messaging: Improve the performance of non-contact searches 2021-10-28 10:56:38 +01:00
output MDL-72586 message: New WebService get_unread_notification_count 2021-10-04 14:40:48 +02:00
templates MDL-72455 theme_boost: enable roundness for bootstrap components 2021-09-30 15:53:44 +02:00
tests Merge branch 'MDL-72586-master' of git://github.com/dpalou/moodle 2021-10-15 10:23:15 +08:00
edit.php MDL-63303 message: message/edit.php opens setttings in message drawer 2018-11-15 14:43:21 +08:00
externallib.php Merge branch 'MDL-72585-master' of git://github.com/dpalou/moodle 2021-10-15 09:53:19 +08:00
index.php Merge branch 'MDL-65093_master-deprecate' of git://github.com/markn86/moodle 2019-07-29 10:43:52 +08:00
lib.php MDL-72587 message: Support getting both read and unread messages 2021-09-28 10:37:39 +02:00
module.js MDL-54708 message: change popover processor to nav bar notification 2016-10-07 16:26:40 +08:00
notificationpreferences.php MDL-56292 message: fix param in notificationpreferences.php 2016-10-10 12:48:52 +08:00
pendingcontactrequests.php MDL-65219 message: add message/pendingcontactrequests.php page back 2019-07-23 11:37:55 +08:00
renderer.php MDL-66968 php74: array_key_exists() for objects is deprecated 2019-10-25 00:49:04 +02:00
upgrade.txt MDL-72587 message: Support getting both read and unread messages 2021-09-28 10:37:39 +02:00