
This is a questionable hack and bypasses the first question: What is the performance you expect to get from such code? A simple scientific experiment would charter the performance curve from 1K, 2K, 4K.... You might quickly detect that the work to be performed by an optimizer might go beyond your limits and you have to think about smarter ways to implement your BI solution. It is well-known that particularly ORM-based systems can have a bad SQL generation component, due to many reasons, which call for high-level assessment of the task ahead. This code looks like a code generator that walks through a dimension table to encode in a very poor way a join /set operations then using the fact that the dimension table is already in the server and fast join/set operators are available. regards, Martin On 19/12/2017 19:26, Eyal Rozenberg wrote:
Even if your scenario is valid, perhaps you could reduce the depth of nesting without changing the query semantics? Or rearrange the order of things? e.g.
cond1 AND (cond2 AND ( cond3 AND cond4 )
could become
( cond1 AND cond2 ) AND ( cond3 AND cond4 )
or
( ( cond1 AND cond2 ) AND cond3 ) AND cond4
and that might not get to such a full stack.
Eyal
On 12/19/17 4:57 PM, Sharma, Sreejith wrote:
All,
I have a valid scenario where our application generates a SQL which is around 4.4MB and contains 75K of combination of AND and OR operators. This SQL fails with “SELECT: too many nested operators” error while executing this SQL.
While I went through the code, I noticed any thread size above THREAD_STACK_SIZE - 16 * 1024 is getting aborted. Is there any possibility that we can change this? Any reason why it’s set to 16MB? As server our server has enough memory and storage and we need to understand if this can be handled in code or via parameter as this is valid scenario. Also, we can’t split the SQL too.
Regards,
Sreejith
_______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list
_______________________________________________ users-list mailing list users-list@monetdb.org https://www.monetdb.org/mailman/listinfo/users-list