Closed kyle1373 closed 3 months ago
queries:
EXPLAIN ANALYZE SELECT * FROM "Posts" WHERE "TitleId" = '14866558073375470466' AND "GameId" = '14866558073375470493' ORDER BY "EmpathyCount" DESC, "PostedDate" DESC
EXPLAIN ANALYZE SELECT * FROM "Posts" WHERE "TitleId" = '6437256808747468610' AND "GameId" = '6437256808747468620' ORDER BY "EmpathyCount" DESC, "PostedDate" DESC
EXPLAIN ANALYZE SELECT * FROM "Posts" WHERE "TitleId" = '14866558072989539884' AND "GameId" = '14866558072989539887' ORDER BY "EmpathyCount" DESC, "PostedDate" DESC
EXPLAIN ANALYZE SELECT * FROM "Posts" WHERE "TitleId" = '14866558073605628430' AND "GameId" = '14866558073605628444' ORDER BY "EmpathyCount" DESC, "PostedDate" DESC
Removed 2 db indexes which were being used over other ones. I'll check back on this and if archiverse isnt getting anymore gateway timeouts then this issue is solved
Looks like issue has been resolved. Removing the indexes which were used in those queries fixed it
The following were communities which resulted in a 504 gateway timeout:
gives a 504 gateway timeout if you view their posts. The queries typically take more than 30 seconds. Meanwhile, other communities do not face this issue. First, figure out why some communities result in gateway timeout, then figure out a fix to them