CoursePress taking too much memory when loading courses and users list

I’ve got around 3000 students and 375 courses. All students have access to all courses. When loading the list of courses in the admin panel, PHP is using 2GB of memory. When loading the list of students its using nearly 4GB.

We’re expecting the user and course counts to increase a lot, but this memory utilization is off the charts.

It seems that coursepress is loading all user’s metadata into an array and processing it which would ean that memory usage will be (number of courses * metadata per course * number of users) which gets out of hand quickly.

I need to find a way to not need 4GB of memory when loading either the courses or users list :slight_smile: