mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #65210
[Bug 1962793] [NEW] Maybe add a get_user_bulk() option to work similar to get_user() for places where we want lots of users at once
Public bug reported:
When we are returning a list of results, say a report with lots of
users, when we call get_user() on each person it does a number of db
calls to fetch associated activity and account information for that user
and most of that info is not needed for the report.
What we should do is either have a get_user(true/false) which can return
the minimum info or not or even have a get_user_bulk(userids) function
where we can pass all the ids we want for 1 db query and then fetch info
from resultant array
** Affects: mahara
Importance: Wishlist
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1962793
Title:
Maybe add a get_user_bulk() option to work similar to get_user() for
places where we want lots of users at once
Status in Mahara:
New
Bug description:
When we are returning a list of results, say a report with lots of
users, when we call get_user() on each person it does a number of db
calls to fetch associated activity and account information for that
user and most of that info is not needed for the report.
What we should do is either have a get_user(true/false) which can
return the minimum info or not or even have a get_user_bulk(userids)
function where we can pass all the ids we want for 1 db query and then
fetch info from resultant array
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1962793/+subscriptions