-
Notifications
You must be signed in to change notification settings - Fork 2
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
Odd time out #25
Comments
Before the timeout the CPU is at 100% (memory is fine), so it's desperately trying to get to the results |
The timeout itself is likely because of the reverse-proxy you are using. There is no timeout in Oxigraph server. On why the query execution is so slow, it's likely that it is because Oxigraph picks a bad join ordering, exploding the computation time. Subqueries is indeed a way to game the join reordering system. |
thanks @Tpt . Yes, the timeout is the proxy, but >60s is the issue (even if I set the timeout to 10 minutes). I can optimize the queries but using the visual query builder sparnatural it's kind of problematic as it constructs the sparql for the user... probably optimizing "bad join ordering" on oxigraph's end is not an easy fix? |
It's indeed not an easy fix. It would still be great to put some work in this area because the current reordering algorithm is very bad. However, it's an endless topic, join reordering is a very hard problem you can put dozens of years of work into. |
maybe this is a problem of oxigraph and not shmarql? @Tpt
Endpoint: https://dataria.org/sparql
Query
Result
Solution
Avoiding
<http://www.graceful17.org/ontology/has_main_type> <http://www.graceful17.org/resources/type_460>
or making itOPTIONAL
will return a result in 0.3 seconds. It also works with a subqueryI can
DESCRIBE
both a?object_8
and<http://www.graceful17.org/resources/type_460>
-- the predicate<http://www.graceful17.org/ontology/has_main_type>
exists!It might be something on my end -- just wanted to check if I need to dig deeper in my data and config or if it could be out of my (immediate) control...
The text was updated successfully, but these errors were encountered: