Skip to content

Is there a SPARQL query complexity analyzer similar to the ones available for GraphQL? #5172

Answered by kenwenzel
Dimous asked this question in Q&A
Discussion options

You must be logged in to vote

RDF4J computes cost estimates during query optimization:

You could try to interpret these values but I think it won't work for most of your cases as you would need the real result set cardinalities.

The best approach is to just limit the maximum query time by using setMaxQueryTime():
https://rdf4j.org/javadoc/5.0.0/org/eclipse/rdf4j/query/Query.html#setMaxQueryTime(int)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dimous
Comment options

Answer selected by Dimous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants