-
Notifications
You must be signed in to change notification settings - Fork 20
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
The count query will trigger heavy looping #89
Comments
Hi @brianchen2012
which is very similar to your query.
Thanks for entering this [1] org.gazzax.labs.solrdf.integration.sparql.LearningSparql_SELECT_ITCase.countFunction() |
@brianchen2012 please forget my questions: I just reproduced it |
A short update on this: that is not an endless loop. I know, it seems but it isn't. The COUNT keyword evaluation triggers a scan across any entry in the target model defined by the WHERE condition (in the example on the whole dataset), so for instance if you have 1.000.000 of triples the query above does 1.000.000 of iterations...taking a lot of time...and this is the problem. |
Yes, it will iterate through the result set |
@brianchen2012 I'm still fighting with this issue, it seems that a deeper look into Jena internals is needed, so I think it will take me a bit |
Closed as it is not a bug, I opened the issue #96 for the general optimization topic |
The following count query will get the no endless looping.
SELECT (COUNT(*) as ?count) WHERE {?s ?p ?o .}
The text was updated successfully, but these errors were encountered: