Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Partition - id on new entities?
Partition - id on new entities? [message #754920] Sat, 05 November 2011 03:12 Go to next message
sergio.e.samayoa is currently offline sergio.e.samayoaFriend
Messages: 3
Registered: November 2011
Junior Member
I been using JPA since 1.0 (hibernate I must admint...) so,
How to handle new entities's IDs in an horizontal patitioned entities?

For example, I always use a sequence, in partitioned entities how I should do that?
Re: Partition - id on new entities? [message #755232 is a reply to message #754920] Mon, 07 November 2011 18:26 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

How are you partitioning your entities? Are you using EclipseLink's partitioning support?

You don't need to partition the sequence object, just define it on one database and have all ids allocated from there (use a large preallocation size to improve performance).

James : Wiki : Book : Blog : Twitter
Previous Topic:Custom sequence
Next Topic:Compare two EntityManagerFactories for having PersistenceUnits with identical connection attributes
Goto Forum:

Current Time: Sat Jun 23 01:02:05 GMT 2018

Powered by FUDForum. Page generated in 0.03043 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top