Conventions: Querying
FindPropertyNameForIndex and FindPropertyNameForDynamicIndex
These two conventions specify functions that are used to find the indexed property name for a static index or a dynamic one. This can be useful when you are indexing nested properties of complex types. Their default implementations are:
FindPropertyNameForIndex = (indexedType, indexName, path, prop) =>
(path + prop).Replace(",", "_").Replace(".", "_"),
FindPropertyNameForDynamicIndex = (indexedType, indexName, path, prop) => path + prop,
The arguments in the order of appearance: an indexed document type, an index name, a current path and a property path.
ThrowIfQueryPageSizeIsNotSet
Since RavenDB 4.0 there is no limitation for the number of results returned for a single query by the server. The ThrowIfQueryPageSizeIsNotSet
convention decides whether RavenDB Client
should prevent from executing queries if their page size is not explicitly set.
Enabling this configuration at development stage can be useful to pinpoint all the possible performance bottlenecks.
ThrowIfQueryPageSizeIsNotSet = true