Replies: 1 comment 7 replies
-
If you want to manually apply the odata query options, pass the If you keep the
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to tell the library to skip applying the filter on the returned results?
I need to apply the filter manually to be able to integrate it with my database queries (as I'm not using EF, the library can only apply it in memory). But if I apply it myself, the library will still apply the filter in memory, effectively applying the filter twice. Which is unfortunate, because the results I return already satisfy the filter, so this is a waste of CPU cycles.
I tried a couple of things like overriding the
EnableQuery
attribute andODataQueryOptions
behavior, but I couldn't get that to work without also losing functionality like the default server-side paging ect. Ideally I'd want to only mark certain query options as already applied, so the library won't apply them a second time, without then having to go and implement a lot of the standard functionality myself.Beta Was this translation helpful? Give feedback.
All reactions