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

Performance of BIND #9

Open
keski opened this issue Oct 11, 2017 · 0 comments
Open

Performance of BIND #9

keski opened this issue Oct 11, 2017 · 0 comments

Comments

@keski
Copy link

keski commented Oct 11, 2017

Running the CQELS engine with a query that requires a BIND drastically reduces performance. For example, the query:

CONSTRUCT { [] ?p ?o . }
WHERE {
   STREAM <http://example.org/stream> [RANGE 1s] {
      ?s ?p ?o .
   }
}

is many times faster than:

CONSTRUCT { ?bnode ?p ?o . }
WHERE {
   STREAM <http://example.org/stream> [RANGE 1s] {
      ?s ?p ?o .
   }
   BIND(BNODE() AS ?bnode)
}

In my particualr use-case the latter form introduced an extra 250-350 ms delay per result. Is there an explanation for why BIND is so slow?

Also, the first query seems to reuse the same blank node for all evaluations: is this the expected behavior?

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