How to increase maxUrlLength in RavenDB?

52 views Asked by At

Lets say I want to check if field with very long key exists in my database. So I query it like:

var fieldId = "Fields/Very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_very_LONG_FIELD_ID";

_fieldRepository.Get(fieldId);

And then I get BadRequest exception from RavenDB which says:

The length of the URL for this request exceeds the configured maxUrlLength value.

I am using RavenDb 2330 version.

Question: how can I increase the maxUrlLength property in RavenDb?

1

There are 1 answers

1
synhershko On

You can't. Use Lazy operations - this will send it as a POST and avoid this error.