autolab / Autolab

Course management service that enables auto-graded programming assignments.
http://www.autolabproject.com/
Apache License 2.0
752 stars 213 forks source link

Too many users causes huge load time in Admin-Users page #1449

Open akshayrvnkr opened 2 years ago

akshayrvnkr commented 2 years ago

Environment

Steps To Reproduce Steps to reproduce the behavior:

Current behavior No pagination, huge page load time, and server load to generate the Rails view

Expected behavior Some kind of pagination and user search so that it is easy for Admin to navigate.

We have over 10k users in our autolab system, and when the admin loads the list of users page, Rails thread firstly takes a huge amount of database queries and views render time at the server-side. Then the browser takes a lot of time to download, eventually causing the page to hang due to its size.

xinyis991105 commented 2 years ago

Hi Akshay! Thanks for bringing this up! There is definitely much room for optimization and we'll let you know when we find a way around this issue!