About page hangs/slow to load

This happened with the latest beta release.

A large number of category group review/moderation moderators were added (approximately 338) to a group, which was then assigned to moderate certain categories. With the addition of category mods to the about page, it more or less broke the page. It took several minutes to display the large number of new “staff.” For some users, it failed completely, hung the browser, and had to refresh multiple times to get it to load. Volunteer with experience with Discourse also noted “Although here’s a bit of oddness, the JSON version for API usage loads almost instantly.”

Ultimately had to remove the group as a category mod, removing them from the about page, to get it to load again.

To explain the huge number of moderators: For our use case, we have a large number of local regions. These regions are headed by local volunteers, who by and large were responsible for modding their own regional forum. We have around 900 or so regional representatives who need to be able to moderate their local forum. This is especially critical for non-English-speaking regions.

We’re exploring other options to resolve this for now. Just reporting the issue with the about page!

8개의 좋아요

I think this is yours @Osama?

5개의 좋아요

Can you tell me how many categories this group (of 338 users) was assigned to moderate? Since the JSON API is not the cause of this, I suspect Ember.js trying to render all those users is what’s choking the browser here. So it’d be helpful to know an estimate of the total number of users that the page is trying to render.

5개의 좋아요

At the time we had about 8 or 9, I believe? No more than a dozen. (We’ve added more since, which is why I’m not sure.)

4개의 좋아요

@Heather_Dudley 님이 언급했던 API를 사용하던 당사입니다. 해당 JSON의 크기에 비해 데이터 가져오기는 꽤 빨랐습니다.

당시에는 메인 카테고리와 하위 카테고리를 포함해 총 10개의 카테고리가 있었습니다. :slight_smile:

3개의 좋아요

이 문제는 다음에서 수정되었습니다:

이 커밋에는 두 가지 사항이 포함되어 있습니다. 1) /about 페이지가 더 빠른 렌더링 방법을 사용하도록 변경되었고, 2) /about 페이지에 표시되는 카테고리별 관리자 총 수를 100명으로 제한했습니다. 따라서 카테고리가 4개 있는 경우, 각 카테고리에서 최근 활동한 관리자 중 최대 25명씩 표시됩니다.

7개의 좋아요