You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.1 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Miscellaneous conventions

DisableProfiling

Disable all profiling support which has been enabled by the DocumentStore.initializeProfiling() call.

conventions.setDisableProfiling(true);

MaxNumberOfRequestsPerSession

The max number of requests per session. See the related article for details.

conventions.setMaxNumberOfRequestsPerSession(10);

SaveEnumsAsIntegers

It determines if java enum types should be saved as integers or strings and instruct the query provider to query enums as integer values. Default: false.

conventions.setSaveEnumsAsIntegers(false);

DefaultUseOptimisticConcurrency

This convention allows to enable optimistic concurrency for all opened sessions. More about optimistic concurrency you will find here. By default concurrency checks are turned off:

conventions.setDefaultUseOptimisticConcurrency(false);