Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Ids not being used

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
>


Back to the top