Picture of David  Tarrant
Re: Slow course page load time on AT server
by David Tarrant - Friday, 4 October 2019, 1:30 PM

I still have a lot of problems with course load times after the 0.10.0 release. 

Given that each course, article, page, block, component etc appears to be loaded using a separate API request this is causing a significant slow down for my AT server.

To give an indication of performance a page with 10 blocks (each containing 2 components) takes a total of 6 seconds to load. Thus half a second per block. Thus a page with 32 blocks containing questions in a question bank takes nearly 17 seconds to load. Each time I edit a question and press save I have to wait another 17 seconds. 

This is pretty horrific performance. Perhaps the API needs to be streamlined to not need so many calls in order to load each page in the AT?

AT: 0.10.0
AF: 2.4.0
Node: v8
Mongo: v3.2.6

Any other hints to speed this up welcome.