How is a value object stored in Ignite/H2

classic Classic list List threaded Threaded
2 messages Options
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

How is a value object stored in Ignite/H2

asked by mshah

1) How does the POJO object that is put into the cache get stored? i.e. Does it get converted to a flat H2 database table (similar to hibernate) or is the object blob or reference stored?

2) How does this object get distributed to a replicated node? i.e. What serialization method is used, and does the value object need to be serializable?

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: How is a value object stored in Ignite/H2

commented by yakov zhdanov

1) Reference to an object is stored in Ignites custom SQL table implementation for H2.
2) For performance considerations it is better to have objects serializable (or Externalizable). Serializaton method is defined by configured marshaller. See org.apache.ignite.configuration.IgniteConfiguration#getMarshaller

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss