Replies: 1 comment
-
Additionally, if I build the filters as a string. Is it significantly better to apply all conditions in one large string with many conditions, or does it not matter to call filter multiple times? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to filter a table based on a dynamic filter.
So since I can't reference it from the outside I pass it into params:
However various ways of looping isn't possible:
And of course, using an array method is also not:
So then I can pass params and call filter individually:
Now this works, but I am a bit concerned how this would actually be handled internally, would each filter need to pass over the data one at a time? Would overriding the same attribute repeatedly and then filtering on those properties be wise?
The alternative seem to be:
Beta Was this translation helpful? Give feedback.
All reactions