react-odata icon indicating copy to clipboard operation
react-odata copied to clipboard

Batch Request for long filter queries

Open svemoory opened this issue 7 years ago • 4 comments

My filter query is getting too long in the url and throwing an error. How can I use batch processing in the current format? Are there other ways to get around?

Any examples would help.

svemoory avatar Jan 02 '18 22:01 svemoory

Sorry I've not used batch processing (yet) and this do not have a work around. It's been on my list of items to look into but have not had time yet.

On Tue, Jan 2, 2018, 5:52 PM SNV [email protected] wrote:

My filter query is getting too long in the url and throwing an error. How can I use batch processing in the current format? Are there other ways to get around?

Any examples would help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/techniq/react-odata/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAK1RFvwV4N7ux-a0kBhiJRl4a46kt8Mks5tGrNHgaJpZM4RRK-k .

techniq avatar Jan 02 '18 23:01 techniq

Thanks for a prompt response. I found couple of solution out of which atleast one worked:

  1. In the odata API I increased the maxQueryString="2097151" and that resolved the error.
  2. Another thing is there is a MaxNodeCount in odata which can be set in the configuration to allow long filters (I haven't tried it yet)

svemoory avatar Jan 03 '18 23:01 svemoory

Hey! Is that still a case? :D

TheAifam5 avatar Jan 29 '19 20:01 TheAifam5

@TheAifam5 I'm afraid it is. I've also recently been using GraphQL recently so I'm not sure I'll be fixing this. Welcome to review a PR though.

techniq avatar Jan 30 '19 01:01 techniq