1. There is no any public API for that but you can follow a workaround suggested here <https://stackoverflow.com/questions/49780044/apache-ignite-binaryobject-bloat>. If you have a POJO class of your domain object, then create an instance, convert it to BinaryObjectImpl and get the array size (as suggested on StackOverflow).
2. No, you have to set the size in advance. However, the combination of initial and max size might do the trick for you. Use the initial size for after you calculate the value for an expected number of records the cache has to store while the max size can give you an extra space to deal with the calculation/estimations errors. - Denis On Tue, Jun 30, 2020 at 9:08 PM Victor <[email protected]> wrote: > Yes, user upfront defines a config and the idea indeed is to convert the > number of records to total bytes. > > Followup around this. Given i want to calculate the exact row entry size > upfront, even before the data is added. Couple of queries, > > 1. Is there a way(api) just based on the Cache (table), be able to inspect > the capacity a row can hold based on the column datatypes? > 2. Can the Dataregion be set post the cache is created? > > Thanks, > Victor > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
