Return-Path: X-Original-To: apmail-db-jdo-dev-archive@www.apache.org Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA7D38D30 for ; Wed, 10 Aug 2011 04:21:27 +0000 (UTC) Received: (qmail 84154 invoked by uid 500); 10 Aug 2011 04:21:22 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 84141 invoked by uid 99); 10 Aug 2011 04:21:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 04:21:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.159.7.35] (HELO relay.ptn-ipout01.plus.net) (212.159.7.35) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 04:21:11 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoMGAF4GQk7Unw4U/2dsb2JhbABCmCqPGXeBQAEBBAF+Cws0EleIBgK+PoZGBIcukGOLYw Received: from outmx08.plus.net ([212.159.14.20]) by relay.ptn-ipout01.plus.net with ESMTP; 10 Aug 2011 05:20:49 +0100 Received: from [87.113.14.36] (helo=rookie.persistability.co.uk) by outmx08.plus.net with esmtp (Exim) id 1Qr0Hh-0006js-DA for jdo-dev@db.apache.org; Wed, 10 Aug 2011 05:20:49 +0100 From: Andy Jefferson To: jdo-dev@db.apache.org Subject: Re: svn commit: r1148192 - /db/jdo/trunk/tck/src/conf/jdori-pmf.properties Date: Wed, 10 Aug 2011 05:20:47 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.31.13-desktop-1mnb; KDE/4.3.5; i686; ; ) References: <4E26FD63.4050706@akquinet.de> <4E419929.5050008@akquinet.de> <81A80B80-3E0A-4DB4-AB2A-11E61E815173@oracle.com> In-Reply-To: <81A80B80-3E0A-4DB4-AB2A-11E61E815173@oracle.com> Organization: DataNucleus MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108100520.47642.andy@datanucleus.org> > The intent of the "increment" strategy is to allow use of a database > that the user has no control over (for example, the DBA refuses to add > new tables). It's not an optimal strategy but a useful one. The JDO > implementation can cache the largest key used and mitigate database > access for each insert. > > But without changing the specification, I don't think it's ok to > require another table in order to implement "increment". That's what > "sequence" is for. > > Was there a recent change in DataNucleus that now "increment" is > implemented using an internal "sequence" strategy? DataNucleus simply changed to make use of the "autoCreate" flags in imposing whether it was allowed to create *any* schema components. It has ALWAYS used a table for "increment", that is not a change. "sequence" has always been to use a datastore sequence also. -- Andy DataNucleus (http://www.datanucleus.org)