Dmitri created OLINGO-1353:
------------------------------

             Summary: 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
             Fix For: (Java) V4 4.6.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
(v7.6.3#76005)

Reply via email to