Skip to content

order of operations in SPARQL eval and execution #3567

Answered by abrokenjester
nguyenm100 asked this question in Q&A
Discussion options

You must be logged in to vote

The order in which the elements of a graph pattern are evaluated is determined by the query planner, which uses statistics and cost estimates provided by the underlying store implementation.

Try running a query explanation, this will tell you what numbers the planner uses for your particular query, and may give you a clue as to why it chooses the execution order it does.

I'm not very familiar with JanusGraph and don't know how you've been able to use RDF4J on top of it but at a guess I'd say that it lacks a store-specific extension of the EvaluationStatistics class which calculates these kinds of statistics. By default, a single pattern like that ?s subclassOf ?i will be considered cheape…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by nguyenm100
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