bug (?) : FILTER NOT EXISTS size limit #5619
Unanswered
YvanDesPatates
asked this question in
Q&A
Replies: 2 comments 7 replies
-
|
I believe this was fixed fairly recently. Is this still reproducible with 5.2.1? A workaround would be to increase your stack size: https://www.baeldung.com/jvm-configure-stack-sizes |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Hi @YvanDesPatates besides the issue with the stack size. Perhaps changing the first FILTER IN into an VALUES clause might give better performance. I suspect that the second filter can then be much smaller as an expression. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, I am working for opensilex. We are working on a Java API that use RDF4J as database. I'm writing here in order to know if my issue is an issue, if I should open a GitHub issue, or if the only issue is the way I'm using SPARQL queries 😆
Description
I recently changed the way we delete things. Doing this, I ended up with a smaller request but a huge FILTER NOT EXISTS field that should avoid deleting some triples (because some of our data models have an IgnoreUpdateIfNull annotation on some fields).
I know the issues do not come from the query size. I had the issue on a query with 362 504 chars while I am able to perform simple CREATE queries with more than a million chars.
RDF4J version
I am using this RDF4J docker image :
eclipse/rdf4j-workbench:amd64-3.4.3Error
RDF4J server response :
Transaction handling error: java.util.concurrent.ExecutionException: java.lang.StackOverflowErrorQuery
This is a very short example of the FILTER NOT EXISTS field to understand the huge query above.
The entire query:
full_request_formatted.txt
I'm sorry for this awful file with a lot of horizontal scrolling.
Expectation
As I told you at the beginning of these messages, I want to know if you consider it as an issue or if you think that this type of query is too much for RDF4J and so I should change the way I handle my needs. I already have some ideas to prevent this problem (batching, using many smaller filters instead of one big one...), but I was thinking that others should probably have the same issue one day.
Thank you for reading !
__
Yvan
Beta Was this translation helpful? Give feedback.
All reactions