Hi,

I found and fixed the problem in trunk.

The problem was: for object data types, the cache size memory estimation
was sometimes far off in a read-only scenario. This can result in
inefficient cache usage.

This doesn't affect you when using the relational database (SQL / JDBC).

Regards,
Thomas


On Tuesday, March 21, 2017, Roland Lohner <[email protected]> wrote:

> Sorry, the attachment is here. :)
>
> On Tuesday, March 21, 2017 at 8:44:16 PM UTC+1, Roland Lohner wrote:
>>
>> Hi Thomas,
>>
>> The attached test reproduces the case using MVMap<String, HashMap<String,
>> Object>>
>>
>> Regards,
>> Roland
>>
>>
>> On Wednesday, March 15, 2017 at 1:13:14 PM UTC+1, Thomas Mueller Graf
>> wrote:
>>>
>>> Hi,
>>>
>>> OK I see. I'm not sure, maybe this is a bug? Can you reproduce it with a
>>> simple test case (for example using <Integer, String>)?
>>>
>>> Regards,
>>> Thomas
>>>
>>>
>>> On Wed, Mar 15, 2017 at 12:20 PM, Roland Lohner <[email protected]>
>>> wrote:
>>>
>>>> Hi Thomas,
>>>>
>>>> I suspect you misunderstood case B).
>>>> In that case only the search function is called.
>>>> It means there is no overwrite as there are no put operations, only get
>>>> operations are called.
>>>>
>>>> I am wondering what causes the different used cache size in case B)
>>>>
>>>> Regarding 1.7G java memory vs. 5G reported cache size anomaly. You are
>>>> right.
>>>> I have put a special structure as value into MVMap, without using a
>>>> proper DataType as valueType.
>>>> So MVMap did not have a chance to estimate used cache size.
>>>>
>>>> Regards, Roland
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "H2 Database" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at https://groups.google.com/group/h2-database.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at https://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to