comunica / comunica-feature-link-traversal

📬 Comunica packages for link traversal-based query execution
Other
8 stars 11 forks source link

Stop traversal when result stream is not being consumed anymore #43

Closed rubensworks closed 2 years ago

rubensworks commented 2 years ago

Issue type:


Description:

For very specific queries, the query engine can keep traversing documents for a long time after the user has stopped consuming results (either by placing LIMIT on the query, or by using bindingsStream.toArray({ limit: 1 })).

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name WHERE {
  <${webId}> foaf:name ?name.
}

The root cause of this issue lies at https://github.com/comunica/comunica/issues/950

github-actions[bot] commented 2 years ago

Thanks for the suggestion!