[Performance] Too long to load project-version setting for big project with 3000+ documents and 24 versions

Description

For a big project such as https://fedora.stage.zanata.org/project/view/man-pages-l10n
It tooks too long to go to project-version setting.

Step to Reproduce:
1. Login in https://fedora.stage.zanata.org/
2. Go to https://fedora.stage.zanata.org/project/view/man-pages-l10n
3. Go to version master
4. Click "Settings"

Expected:
Enter settings page instantly, without wain all the statistics.

Actual:
It tooks more than couple of minutes to enter settings view.
Seems like it need to wait until all the statistics being loaded.

It will also show error message:
An unexpected error has occurred. Please report this problem with details of what you were attempting.

Environment

None

Assignee

Unassigned

Reporter

Ding-Yi Chen

Tested Version/s

None

Affects versions

Priority

unspecified
Configure