Skip to content

Performance of graph.query over large local triple store #1563

Discussion options

You must be logged in to vote

Could this be an issue due to the order of triple patterns?
As far as I know, databases such as the one behind a SPARQL endpoint like Virtuoso may reorder triple patterns in order to prevent a large number of intermediate results.

  1. ?instanceOfClassA a http://data.linkedmdb.org/resource/movie/actor .
  2. ?instanceOfClassB a http://data.linkedmdb.org/resource/movie/writer .
  3. ?instanceOfClassA ?prop ?instanceOfClassB .

I don't know the inner workings of rdflib but if it doesn't perform this kind of reordering, the intermediate result of calculating the cross product between actors and writers could become extremely large. However if you have a database with clever optimization techniques, it cou…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #787 on December 25, 2021 19:26.