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

Ask Your Question
0

partition routing index and search,data loading, creating space Kindly help

1)In a partitioned cluster say the objects are patitioned using hash-map of their id. Now if the application using the space wants to
search for objects using any other non-id field of the object, how is it going to work? If objects with that field are
scattered through the space would the space would be able to find them all?
2)Is a master space must have all the data loaded as objects or only a part of them? If only parts then how is it going to
get it from database ? Is it automated?
3)How to create space/spaces with the same jvm of an application instance

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2008-01-11 03:03:13 -0500

bahata 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
0

Hi,

"In a partitioned cluster say the objects are patitioned using hash-map of their id. Now if the application using the space wants to
search for objects using any other non-id field of the object, how is it going to work? If objects with that field are
scattered through the space would the space would be able to find them all?"

The routing index is a one-to-one mapping between to identify the location of the entry. In case that a routing field is not available the proxy "broadcasts" a request to all the cluster to find matching entries based on the template used

About data loading

Objects are loaded fully into the space

To create spaces within the same VM you should use the java protocol for space create - something like: "/./mySpace" . You can use this URL either as part of the definition of a space object in the pu.xml or it can also be done programmatically - UrlSpaceConfigurer spaceConfigurer = new UrlSpaceConfigurer("/./space");

Guy

answered 2008-01-11 03:12:09 -0500

nirpaz gravatar image
edit flag offensive delete link more

Comments

Hi Thank you so much for the answer. To clarify one thing As answer to my previous question 2) you said "Objects are fully loaded" Did you mean that all the objects are loaded from the database, i.e. there is no object left out and for _reading purpose_ there need not be any database access any more. Only to update we need to access the database?

bahata gravatar imagebahata ( 2008-01-11 03:25:01 -0500 )edit

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

Stats

Asked: 2008-01-11 03:03:13 -0500

Seen: 85 times

Last updated: Jan 11 '08