mnet: backup_user_info() is faster, and it store mnethosturl for foreign users
authormartinlanghoff <martinlanghoff>
Tue, 16 Jan 2007 02:27:36 +0000 (02:27 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 16 Jan 2007 02:27:36 +0000 (02:27 +0000)
commit54359be4c9f6d63138d1139c036073b4dcd5baec
treef04a6a9782c905161c4cee1fa041bd3ae79c9396
parentdd3638e47e66ae5de3d521dd17203c64b8b1edf3
mnet: backup_user_info() is faster, and it store mnethosturl for foreign users

Several changes to backup_user_info() rolled up here

 - The main JOIN happens in SQL instead of PHP
 - We now also join with mnet_host to get the wwwroot
 - As part of the join, all the variables appear in $user -- $user_data is gone
 - If the mnethostid is non-local we include MNETHOSTURL for that user

With this, backup_user_info() should be significantly faster for large
sets of users, though I haven't benchmarked it.
backup/backuplib.php