[ 
https://issues.apache.org/jira/browse/DERBY-6751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-6751:
---------------------------------
    Attachment: derby-6751-02-aa-cacheLCC.diff

Thanks for that theory, Knut. Attaching derby-6751-02-aa-cacheLCC.diff. This 
patch makes the callers of EmbedConnection.getLanguageConnection() cache the 
lcc so that the lcc won't have to be re-read repeatedly inside tight loops. I 
will run tests.

Hopefully, this will address the performance regression Knut saw.

Touches the following files:

M       java/engine/org/apache/derby/impl/jdbc/ConnectionChild.java
M       java/engine/org/apache/derby/jdbc/EmbedPooledConnection.java
M       java/engine/org/apache/derby/jdbc/EmbedXAResource.java


> Prevent user code from getting the LanguageConnectionContext from an 
> EmbedConnection
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-6751
>                 URL: https://issues.apache.org/jira/browse/DERBY-6751
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.12.0.0
>            Reporter: Rick Hillegas
>            Assignee: Rick Hillegas
>              Labels: derby_backport_reject_10_11
>             Fix For: 10.12.0.0
>
>         Attachments: derby-6751-01-aa-usederbyinternals.diff, 
> derby-6751-01-ab-usederbyinternals.diff, 
> derby-6751-01-ad-usederbyinternals.diff, derby-6751-02-aa-cacheLCC.diff
>
>
> User code can cast a java.sql.Connection to an EmbedConnection and then get 
> the LanguageConnectionContext by calling 
> EmbedConnection.getLanguageConnection(). We should prevent user code from 
> doing this.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to