TheRosettaFoundation / SOLAS-Match

Self-managed translation project interface
www.TheRosettaFoundation.org
GNU Lesser General Public License v3.0
12 stars 8 forks source link

Dashboard is very very slow for site admin #1271

Closed alanbarrett closed 7 years ago

alanbarrett commented 7 years ago

@Paulina-Rosetta @stefania91 The dashboard is very very slow for a site admin.

It is displaying every project in the system. However, as part of this, it is calling "isSubscribedToProject()" for each project (.03 seconds approx per project). In fact this is not used! So I have removed in commit a208c8dc33fff898f4af6b415b5ffe273c4dc466

Alan.
alanbarrett commented 7 years ago

It now takes over just half a minute rather than just less than 3 minutes, about an 80% improvement. More could probably be done, but enough for now.

Alan.