You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metamodel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/03 13:08:00 UTC

[jira] [Commented] (METAMODEL-1199) Cache more prepared statements in JdbcUpdateCallback

    [ https://issues.apache.org/jira/browse/METAMODEL-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16636919#comment-16636919 ] 

ASF GitHub Bot commented on METAMODEL-1199:
-------------------------------------------

GitHub user jakubneubauer opened a pull request:

    https://github.com/apache/metamodel/pull/190

    Added cache for prepared statements in JdbcUpdateCallback

    Closes METAMODEL-1199

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jakubneubauer/metamodel feature/METAMODEL-1199-jdbc-prepared-statements-cache

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/metamodel/pull/190.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #190
    
----
commit fe9fd8604c8059e57539822f30eb05e8296ad37f
Author: Jakub Neubauer <ja...@...>
Date:   2018-10-03T13:04:53Z

    METAMODEL-1199 Added cache for prepared statements in JdbcUpdateCallback. Size can be tweaked via system property.

----


> Cache more prepared statements in JdbcUpdateCallback
> ----------------------------------------------------
>
>                 Key: METAMODEL-1199
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-1199
>             Project: Apache MetaModel
>          Issue Type: Improvement
>            Reporter: Jakub Neubauer
>            Priority: Major
>
> Currently, JdbcUpdateCallback caches exactly one prepared statement. When the UpdateScript executes different statements, the cached statement is always closed and new one is cached.
> Using bigger cache would make it more performant in some scenarios.
> Sometimes it is not possible to cumulate all kinds of statements together in the transaction. Especially when combining inserts - updates - selects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)