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

Giampaolo commented on CASSANDRA-11522:
---------------------------------------

If I understand correctly [~slebresne] concerns, there are two problems here:
* align single insert behaviour to single insert batch and 
* warn against too large single partition inserts (as simple operation or 
inside a batch).

While the first is solved by 
[CASSANDRA-10876|https://issues.apache.org/jira/browse/CASSANDRA-10876] but 
setting should be renamed, the second one remains open and could be discussed 
as different issue.

> batch_size_fail_threshold_in_kb shouldn't only apply to batch
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-11522
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11522
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Sylvain Lebresne
>            Assignee: Giampaolo
>            Priority: Minor
>              Labels: lhf
>
> I can buy that C* is not good at dealing with large (in bytes) inserts and 
> that it makes sense to provide a user configurable protection against inserts 
> larger than a certain size, but it doesn't make sense to limit this to 
> batches. It's absolutely possible to insert a single very large row and 
> internally a batch with a single statement is exactly the same than a single 
> similar insert, so rejecting the former and not the later is confusing and 
> well, wrong.
> Note that I get that batches are more likely to get big and that's where the 
> protection is most often useful, but limiting the option to batch is still 
> less useful (it's a hole in the protection) and it's going to confuse users 
> in thinking that batches to a single partition are different from single 
> inserts.
> Of course that also mean that we should rename that option to 
> {{write_size_fail_threshold_in_kb}}. Which means we probably want to add this 
> new option and just deprecate {{batch_size_fail_threshold_in_kb}} for now 
> (with removal in 4.0).



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

Reply via email to