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

Ask Your Question

JSON to SpaceDocument Conversion

Presently, I am storing data in NOSQL DB in json format. Now, I want to store same json in GS. How can I convert same json to SpaceDocument. If I am correct, SpaceDocument is Key-value data structure. I would not like refactor my POJO-JSON code base.

asked 2017-02-04 06:58:24 -0500

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Yes - SpaceDocument is Key-value data structure. Fields within this structure could have any data type. You can index any field within this structure at any level , you can query based on any field at any level , including intersections between any fields at any level. Access to SpaceDocument objects can be done via Java/ .Net or Rest API , so it support full inter-operability across different runtime environments.

When using complex deeply nested collections , you may locate objects where items located within the same sub graph. This is very powerful. Most NoSQL DB would not support such advanced query functionality.


Sections of the JSON you don't want to convert into key-value structure can be stored as "blobs" using the Binary Storage type. See: https://docs.gigaspaces.com/xap121/st...

This will speed up the write / read of deeply nested JSON objects and reduce footprint.

answered 2017-05-05 09:23:03 -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: 2017-02-04 06:58:24 -0500

Seen: 62 times

Last updated: May 05 '17