Maybe add a get_user_bulk() option to work similar to get_user() for places where we want lots of users at once

Bug #1962793 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
New
Wishlist
Unassigned

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 post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.