BuggleInc / PLM-server

Wanna be teacher's console (WIP)
GNU Affero General Public License v3.0
2 stars 3 forks source link

Improve page loading time #9

Closed Cedric-Huguenin closed 10 years ago

Cedric-Huguenin commented 10 years ago

Clone the repo in different folders and split the requests on the different git folders.

For example, it can be used to retrieve last activity date of all students in a shorter time.

Merge can be done by merging sub-results Lists.

It's a sort of divide and conquer.

Cedric-Huguenin commented 10 years ago

With the current implementation and 43 students, it takes about 25 seconds (on my computer and my ADSL) to display the allStudents pages. Everytime you refresh the page, it takes the same amount of time.

With a2fbccdffacfe165c0c88437720f7eabca14b176, the first time you call allStudents page, it takes about 20 sec. When you refresh, it takes between 900 and 1500 ms.

The repo is cloned in several folder (repo-....) and the pull commands are distributed on the differents repositories (for the moment, 5 commands per repo). Of course, it takes more place on disk.

Cedric-Huguenin commented 10 years ago

Fixed by dc074e38c11846267c804818399153b945e1cf4a

mquinson commented 10 years ago

Just tested it, and that's impressive. It really rocks this way, thanks