Avoid delimited identifier processing if it's not required by application
-------------------------------------------------------------------------

                 Key: OPENJPA-2162
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2162
             Project: OpenJPA
          Issue Type: Improvement
          Components: jdbc, performance, sql
    Affects Versions: 2.3.0, 2.2.1
            Reporter: Kevin Sutter
            Assignee: Kevin Sutter


Supporting delimited identifiers causes some unnecessary overhead if the 
application and associated database doesn't use them or support them.  This 
change will surface the DBDictionary property supportsDelimitedIdentifiers.  
Currently, this property gets set by querying the database to see if the 
database supports this capability.  With this change, we will first check if 
this property has been explicitly set.  If explicitly set, then we'll use that 
value.  Otherwise, we will default back to querying the database to determine 
whether to support delimited identifiers or not.

Here's an example of the property to set to turn off the delimited identifier 
support:

<property name="openjpa.jdbc.DBDictionary" 
value="db2(SupportsDelimitedIdentifiers=false)"/>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to