How data from server/database is loaded in list view

Hi,
I was wondering how does the data stored in server/database is loaded to front end machines. I mean which code is responsible to fetch the data from server.
The reason for asking is ERPnext hangs a lot in user side when we use it, therefore if there is some way to optimize the data fetch operation I would really like to know.

Regards,
Durbar Dasgupta

@durbar,

Please check the frappe.desk.report_view.get method it is used to fetch the listview data.

Thanks,
Makarand

Thanks @makarand_b for the help.
Is there any other way/practice that might increase the performance of loading the list?