Closed michaelhiiva closed 5 years ago
This is still the case :(
I think this is correlated with the server upgrade mentioned in this post on May 15. I sent email to webmaster@usgo.org as directed but didn't get a response.
In the meantime, if you want to search for a player's page, you can search by name https://www.usgo.org/search-ratings to look up their AGA ID, then go to https://agagd.usgo.org/player/AGA-ID/ directly (making the appropriate substitution).
An acquaintance who knows Django (I don't) looked at this issue and is of the opinion that the problem is that there are no database indexes on full_name
and family_name
, causing the query to be extremely slow and eventually time out. Their proposed fix is to add db_index=True
to the Charfield
declarations for those two fields in the Member
specification in https://github.com/usgo/agagd/blob/master/agagd/agagd_core/models.py, and then either run a database migration or manually add those two indexes to the database.
@dfannius If your friend can send a PR we would love to see it. We'll check to see what we can change in the mean time.
I've created a PR with the code part of the proposed changes as #54.
Overview
Searching for a player's name does not return any results and page times out.
How to Reproduce
Error Log