Is there any reason System.Data.Filter.ExpressionParser to be limited to 100/50 conditions? #87910
-
I've found following restriction while using DataTable.Select(...) functionality : filter limit. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Callstack: |
Beta Was this translation helpful? Give feedback.
-
Even ignoring the limit here, all SQL databases (and the drivers used to communicate with them) impose limits on tokens (ie, each For your specific substatement shown here, if your database supports it you may be able to use some form of array or table parameter (ie, like an |
Beta Was this translation helpful? Give feedback.
-
@Clockwork-Muse Thank you for the replay. |
Beta Was this translation helpful? Give feedback.
-
@Clockwork-Muse I will change code in our software, just for my understanding - if DataTable class where this filtering is used is pure memory structure, why we need this limitation? This class for parsing "where" clause is not used at other places and can have much higher limit. Also conditions built from it are not transferred to any real database engine(or I am wrong), so we should not align with others. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
Sometimes the exact limit on a restriction is just arbitrary. You have to have one for performance reasons.
You're right that
DataTable
is a wholly in-memory representation, so it's not going to hit a database (or its limits).