Replies: 4 comments 3 replies
-
Hi! Honestly I do not know this piece of SPARQL syntax. If I understand your query there is a easy way to rewrite it. Instead of:
you can put
and eliminate the IF. To debug further we would need the unterlying data. Can you share it? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. I have changed to your proposal and the result is still the same (5 minutes time out)
In any case, I'll upload the data to a public place so you can use it for testing |
Beta Was this translation helpful? Give feedback.
-
Another idea would be that you put:
Not sure about the xsd integer (depend on the datatype) and you do:
Should give the same result. |
Beta Was this translation helpful? Give feedback.
-
any update on this? |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm running a set of queries where I'm having performance issues when IF is used.
The query is over the e-Procurement Ontology for calculating a set of transparency indicators, and it looks like this:
If I remove from the projection
(SUM(if(?bidders = 1, 1, 0)) AS ?numSingleBidders)
the query works perfectly and runs in a reasonable time. At the moment that I add the aggregation, it's not able to run it in less than 5 minutes.FYI: the same query over the same dataset takes around 0.31 seconds in Virtuoso (7.2.5).
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions