Skip to content
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

Statements endpoint is timing out on items with many statements #5

Open
stuppie opened this issue Oct 4, 2017 · 1 comment
Open

Comments

@stuppie
Copy link
Collaborator

stuppie commented Oct 4, 2017

Statements endpoint is timing out on certain items: http://garbanzo.sulab.org/statements/?c=wd%3AQ12206
Need to paginate statements queries:
https://github.com/SuLab/garbanzo/blob/master/lookup.py#L299
https://github.com/SuLab/garbanzo/blob/master/lookup.py#L263

I might have some trouble with the time outs. I cannot make sure the result is globally sorted without retrieving the whole thing. It will be sorted when requesting the next page, but if you change a parameter, it might change the order "globally"

@stuppie
Copy link
Collaborator Author

stuppie commented Oct 4, 2017

@RichardBruskiewich
This particular example works now. Diabetes is in a couple thousand statements and runs in about a second now.
0a7b5e8

It does not solve the problem for enormous items though, for example, this still fails when you query for all statements with "gene"
http://garbanzo.sulab.org/statements/?c=wd:Q7187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant