Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 73199 invoked from network); 13 Mar 2011 09:58:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Mar 2011 09:58:21 -0000 Received: (qmail 29324 invoked by uid 500); 13 Mar 2011 09:58:21 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 29295 invoked by uid 500); 13 Mar 2011 09:58:21 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 29287 invoked by uid 99); 13 Mar 2011 09:58:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Mar 2011 09:58:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Mar 2011 09:58:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 657BD3A6D5D for ; Sun, 13 Mar 2011 09:57:59 +0000 (UTC) Date: Sun, 13 Mar 2011 09:57:59 +0000 (UTC) From: "Milosz Tylenda (JIRA)" To: dev@openjpa.apache.org Message-ID: <55644044.16027.1300010279397.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (OPENJPA-1376) @SequenceGenerator allocationSize incorrect implementation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Milosz Tylenda updated OPENJPA-1376: ------------------------------------ Affects Version/s: 2.1.0 > @SequenceGenerator allocationSize incorrect implementation > ---------------------------------------------------------- > > Key: OPENJPA-1376 > URL: https://issues.apache.org/jira/browse/OPENJPA-1376 > Project: OpenJPA > Issue Type: Bug > Components: competitive, jdbc, performance > Affects Versions: 1.2.1, 2.0.0-M3, 2.1.0 > Environment: All > Reporter: Yves > Assignee: Milosz Tylenda > Fix For: 2.2.0 > > Attachments: cache-native-seq-values.diff > > Original Estimate: 8h > Remaining Estimate: 8h > > OpenJpa use allocationSize parameter on NativeJDBCSeq to set the sequence cache value. > But one "JSR 220: Enterprise JavaBeansTM,Version 3.0" , the allocationSize is : "The amount to increment by when allocating sequence > numbers from the sequence." > Allocating is used to limit the number of access to the sequence or table not to set the sequence cache value ! > If allocationSize=50, the sequence need to be call one time on each 50 call on AbstractJDBCSeq.next(). > 1 call on AbstractJDBCSeq.next(). call the sequence or table > 2 call : return previous value + 1; > 3 call : return previous value + 2; > ... > 51 call :re-call the sequence > 52 return previous value + 1 > ... -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira