Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Choosing a partitioning hash

Ultimately, I am looking to the space as a replacement of the database or as an In-Memory Data Grid (IMDG). My particular objects that are in the IMDG are Tasks and Accounts. A Task has a long lifecycle and will be touched by several Accounts along the way. I don't see a clear partitioning scheme rising from my business objects. Should I force one?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2391]{quote}

asked 2008-06-18 21:50:55 -0500

oravecz gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted


When there is no way to partition the data according a routing field
value that will "group" associated objects into the same partition
(allowing a collocated business logic to access the transaction data
using a local transaction without the need to access remote spaces), you
should use a random value as the routing field value (this will make
sure your data will be spread over the different partitions in equal
manner) and execute your business logic using sync remoting.

See example below:

This will make sure you will have deterministic constant execution time
for your distributed operation with the minimal overhead available.


answered 2008-06-20 19:23:58 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2008-06-18 21:50:55 -0500

Seen: 21 times

Last updated: Jun 20 '08