-->
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: Hibernate sharding and master user lookup table: Moving user
PostPosted: Tue Apr 08, 2008 2:05 pm 
Newbie

Joined: Tue Apr 08, 2008 1:30 pm
Posts: 1
Hibernate sharding and master user lookup table: Moving users from one shard to another

For example, 5 tables with 5 primary keys and another table with user_name (or Application-level UUID generation, or Distributed hilo generation) is used as master look up table.

5 tables primary keys are based on mysql auto incerment. This won't work when you move users from one shard to another. Another option is to make 5 tables' primary key as a hash and moving users around shard won't cause key collision as in the case of autoincremented keys. If primary keys are hashes, then, mysql recreates index very time there in an insert. Performance can be pretty bad.

Any one have any suggestions/input on how to go about setting up sharding?


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.