[ 
https://issues.apache.org/jira/browse/CASSANDRA-12367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488499#comment-15488499
 ] 

sankalp kohli commented on CASSANDRA-12367:
-------------------------------------------

The reason you need to make this call before write is because you don't want to 
make the partition too big. 


"In this case it would be the size of the query, if you want the size of a 
given partition then you would run a query specifying only the partition key."

If we run a query specifying only partition key, it will read gigs of data and 
will probability timeout. So won't work. We want a cheap way to know the size 
of CQL partition. 


Also by SIZE ON, will it return the size of data the query is returning or size 
on disk? 


> Add an API to request the size of a CQL partition
> -------------------------------------------------
>
>                 Key: CASSANDRA-12367
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12367
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Geoffrey Yu
>            Assignee: Geoffrey Yu
>            Priority: Minor
>             Fix For: 3.x
>
>         Attachments: 12367-trunk-v2.txt, 12367-trunk.txt
>
>
> It would be useful to have an API that we could use to get the total 
> serialized size of a CQL partition, scoped by keyspace and table, on disk.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to