Hi Andi,

Ignite doesn't support storing values by references without serializing
them first because of it's distributed nature.

So setting the property storeByValue has no effect.

To avoid deserialization on every read you should use:

CacheConfiguration.setCopyOnRead(false)

2016-07-18 11:20 GMT+03:00 AHof <[email protected]>:

> Hi,
>
> is there any way in Ignite, to store values by reference instead of always
> serializing cached values directly on insertion?
>
> When setting CacheConfiguration.storeByValue(false) and creating a new
> cache, nothing happens. I looked a bit through the JCache documentation and
> it does not say what should happen when trying to activate the optional
> store-by-reference feature when it is not implemented by the current cache
> provider.
>
> We need store-by-reference mostly because of performance reasons. Quite
> small caches with immutable objects that are accessed very often. Always
> deserializing the values has a significant performance impact on the
> application.
>
> Kind Regards
>
> -Andi
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Store-by-reference-tp6341.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 

Best regards,
Alexei Scherbakov

Reply via email to