In my quest to work around the loading issues of patientDashboard.gsp I realised that there were in fact two problems happening at the same time when loading that page for a visit with many encounters (say 100+). The first issue is discussed here and is addressed by RA-1244.
The other problem happens before anything else and I can’t quite put my finger on what is happening, look:
After that almost 12 sec waiting time, and only then, the first lines of the controllers are reached and other pieces of code (JS… etc). But what may be causing this initial loading time?
Could anyone give pointers as to which directions to look at?