You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ashishb888 <as...@gmail.com> on 2020/06/17 07:28:46 UTC
Size of an object in Ignite cache
How one can know the exact size of an object stored on Ignite cache?
Can we use below to get the size?
byte[] arr = ignite.configuration().getMarshaller().marshal(new Person(10L,
"first", "last"));
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Size of an object in Ignite cache
Posted by akorensh <al...@gmail.com>.
Hi,
Ignite converts your object to a binaryObject before storing it:
https://apacheignite.readme.io/docs/binary-marshaller
You can take a look at the binary object format:
https://cwiki.apache.org/confluence/display/IGNITE/Binary+object+format
Also see this answer:
https://stackoverflow.com/questions/49780044/apache-ignite-binaryobject-bloat/49780396
Thanks, Alex
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/