Too many users causes huge load time in Admin-Users page
Environment
- National Institute of Technology Karnataka, Surathkal (https://autolab.iris.nitk.ac.in/)
- Ubuntu 18.04
- Autolab version v2.7.0
Steps To Reproduce Steps to reproduce the behavior:
- Go to (/users) with a huge number of users
- The page takes a huge amount of time to load and render and the browser practically hangs
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.
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!