[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Ids not being used
|
- From: Tim Hollosy <hollosyt@xxxxxxxxx>
- Date: Sun, 26 Jul 2009 09:20:38 -0400
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ImMS2zc8ytxfvJWWcFpvH4Oh20Wh456AfCjvirLfie0=; b=K0+MA5f2p+W8Z0dvCWzRXaUdxj9wTE9Qfgh7Wl5r9zmW7PDIsPVa0i2GFOwEo4KMxJ fI+qHvNz/GALpmhGIWzlyx1PQTyQ4tuaF2ipehwqIVenKHrxodVvOUeADV/1IPDDXi1B 2ZX0TDjUE6/bD48I6IAzfKqyIUUEFi2/JzNwY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=RWT/R5orZ5b7W5HDGENbg+QJeFTvqxUfr9gJrEC8+lZmZDngmd97OkZP9hW1IY6LFk yv87A8Atl5trXWyzYW8y5E+50DZYB6IOAK+Xy4YinmvLkjGaE9SDvOImYpiB8q7SlQP+ Zyk95MWlMAnk+5vYs2naWMkP+ZCIND0v06ZOs=
The default allocation size is 50 to save roundtrips to the db, you
can change it, by adding allocationSize=1 to your sequence annotation.
./tch
On Sun, Jul 26, 2009 at 9:17 AM, cl333r<cl333r@xxxxxxxxx> wrote:
>
> Folks, a simple example, after I insert one or more entities into the table
> the next id value starts with a 50 offset, and it happens every time. Hence
> it looks like a lot of id values will never be used. Is it true?
> Is there a "wiser" way to "spend" id numbers (except the "identity"
> solution)?
>
> Using MySQL 5.0 on Ubuntu, JPA with EclipseLink. Happens for all generation
> types except IDENTITY but can't use it because it lets me know the ID of a
> newly created entity only after I commit it to the db.
> --
> View this message in context: http://www.nabble.com/Ids-not-being-used-tp24644801p24644801.html
> Sent from the EclipseLink - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>