-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Number field search is slow #5970
Comments
|
I will manually add an index on the right sort statement, and see if things improve |
fixed
|
The feedback page reports that this similar search times out: https://www.lmfdb.org/NumberField/?degree=8&cm_field=yes&sort_order=h&sort_order=h |
This kind of thing is always going to be whack-a-mole. We don't have the disc space to support all possible combinations of filtering and sorting. Is it worth changing the gunicorn timeout threshold so that we users can get some kind of slow answer via sequential scan when we don't have the right index? I don't know what consequences this would have, but I assume that we don't hit the timeout all that often, since it would be showing up in the flasklog otherwise. |
Recording the URL from #6039 here for testing: https://www.lmfdb.org/NumberField/?degree=8&subfield=4.4.2304.1. I agree that allowing a longer timeout would be desirable, but we should discuss this with @edgarcosta. The ideal solution might be to have the error message offer a button you can click to retry with a longer timeout, rather than changing the timeout across the board (this would help protect us from bots). |
I do not see an easy way to increase the timeout interactively.
If we ever figure out how to do #6221, perhaps we can tackle this by informing the user that the query is taking longer than expected (which perhaps avoids the timeout). Still, we would need some interaction from the user to prevent abuse. The right approach is to make the user aware of:
|
Another alternative, is to list the results unsurted, as many queries become sequential due to the sorting. |
Hmm, how would that work? Is this something that could be triggered on timeout? |
I agree, but both suffer from the technical issue of not knowing how to keep the connections alive without the timeouts kicking in. @AndrewVSutherland , our timeout for searches is shorter than the load balancer/gunicorn timeouts, so the users get a flask error informing them of the problem. |
@edgarcosta I like this idea, maybe it would be worth trying it out to see how well it does on some of our hard queries. |
From the feedback page, the following search times out:
https://www.lmfdb.org/NumberField/?degree=2&sort_order=h&sort_order=h
The text was updated successfully, but these errors were encountered: