-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: "Sharding" data between tables
PostPosted: Wed Apr 23, 2008 9:07 am 
Newbie

Joined: Wed Apr 23, 2008 7:57 am
Posts: 2
Location: Hamburg, Germany
Hi,

I understand Hibernate Shards lets me distribute data between databases based upon access strategies I may specify (or use defaults). I would like to distribute data between tables instead and can't find a proper solution that works for me.

I am about to write an application that does a lot of accounting. Usually I have lots of objects, and each of them used to have its own account table in a previous version that didn't use Hibernate. For each object, I had a table "ACCOUNTnnnn", where "nnnn" ist the object's number. Accounting tables are being created dynamically whenever a new object has been created. This is useful, because each of the tables can contain a mass of data, and I wouldn't like to keep a few million records within one single table.

I would like the same behavior in the new version, where I use Hibernate's latest version and Annotations. As far as I have understood Shards, this will not solve my problem, as I wouldn't like to create several hundred databases.

Is there any hidden annotation based solution I haven't come across yet? Or did I misunderstand Hibernate Shards, as it can also distribute data between tables? Can anybody help me, please?

Thanks a lot and regards,
Heiko


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.