phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (JIRA)" <>
Subject [jira] [Updated] (PHOENIX-3884) Correct MutationState size estimation
Date Wed, 24 May 2017 23:36:04 GMT


Lars Hofhansl updated PHOENIX-3884:
    Attachment: 3884.txt

Here's a simple change. Avoids the ensureKeyValue nonsense and instead uses a Cell to make
a good guess on the size. Since it's stored as a KeyValue add back the storage overhead of

> Correct MutationState size estimation
> -------------------------------------
>                 Key: PHOENIX-3884
>                 URL:
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.10.0
>            Reporter: Lars Hofhansl
>         Attachments: 3884.txt
> Currently the Mutation is estimated by called Mutation.heapSize(), which adds all the
overhead needed to store the Mutation on the Java heap and has little to do with the actual
size on the wire or the size of disk.
> With a sample row with a 20 byte key and 10 columns with a qualifier length and value
length of this reports 1800 bytes, where the size is closer to 600-700 bytes.

This message was sent by Atlassian JIRA

View raw message