You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Xinyi Yan (Jira)" <ji...@apache.org> on 2020/08/04 17:35:00 UTC

[jira] [Created] (PHOENIX-6061) optimize the estimated mutation size

Xinyi Yan created PHOENIX-6061:
----------------------------------

             Summary: optimize the estimated mutation size 
                 Key: PHOENIX-6061
                 URL: https://issues.apache.org/jira/browse/PHOENIX-6061
             Project: Phoenix
          Issue Type: Improvement
            Reporter: Xinyi Yan


The current max mutation size is estimated by jvm level column size plus column family size. See [https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/PNameImpl.java#L48]

This is very expansive in terms of space. Most of the use cases are upserting to the same table/columns and storing the same column/column family. Think about the case where we upsert into 100 rows to the Dummy table(10 columns, COL1, COL2,... COL10). Phoenix calculates the estimate 10 columns and column family for each row, and this metadata info has to  100 times. We probably can do something smarter there.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)