[
https://issues.apache.org/jira/browse/OLINGO-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
mibo updated OLINGO-1353:
-------------------------
Fix Version/s: (was: (Java) V4 4.7.0)
(Java) V4 4.8.0
> Allow switch off edm schema validation to improve performance
> -------------------------------------------------------------
>
> Key: OLINGO-1353
> URL: https://issues.apache.org/jira/browse/OLINGO-1353
> Project: Olingo
> Issue Type: Improvement
> Components: odata4-client, odata4-server
> Affects Versions: (Java) V4 4.5.0
> Reporter: Dmitri
> Priority: Major
> Fix For: (Java) V4 4.8.0
>
>
> Validation of all edm entities works always. This increases de-serialization
> time significantly (maybe even 10 times for particular non-string property of
> entity measured in nanos).
> For end user of Olingo these properties can be validated before Olingo does
> deserialization.
> Some configuration property is required to switch off default Olingo
> validation.
> Example EdmString.internalValueOfString:
> if (isUnicode != null && !isUnicode && !PATTERN_ASCII.matcher(value).matches()
> || maxLength != null && maxLength < value.length()) {
> throw new EdmPrimitiveTypeException("The literal '" + value + "' does
> not match the facets' constraints.");
> }
> This code can be optional, switched on by default.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)