@yorickpeterse we can not have 502 on profiles. Can you please check what code gives timeout and post it here. Maybe I or other developer can help providing a fix.
Its actually quite bad and kinda urgent. People may reference to their GitLab.com public profile from blogs, websites. Having constant 502 there for more than few days is not acceptable.
SELECT "namespaces".* FROM "namespaces" WHERE "namespaces"."type" IN ('Group') AND (public IS TRUE OR id IN(<snip> tens of thousands of IDs</snip>) ORDER BY "namespaces"."id" DESC
It really does look like !1790 (merged) will drastically improve both the newly slow GroupsFinder query and several others. I think we have two options:
Please wait with reworking GroupsFinder until !1790 (merged) has been merged, otherwise I have to basically start all over again at this point (since I'm still writing all my commit messages and such).
This morning @ayufan tried adding an index, which seemed not to help. @yorickpeterse just tried again and now it did help. I can load profile pages now (although they are still too slow).