cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Guyomar <nicolas.guyo...@gmail.com>
Subject Re: How to find dataSize at client side?
Date Wed, 24 May 2017 09:04:50 GMT
Hi,

The list is opened :
https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user,
feel free to subscribe.

Datastax is the main maintainer of the java driver, which is open source (
https://github.com/datastax/java-driver ) , which is not the same driver as
the DSE one : https://github.com/datastax/java-dse-driver



On 24 May 2017 at 10:53, techpyaasa . <techpyaasa@gmail.com> wrote:

> Hi Nicolas
>
> I think only DataStax Enterprise(paid) c* version can ask questions/get
> support from datastax :(
>
> On Tue, May 23, 2017 at 9:44 PM, techpyaasa . <techpyaasa@gmail.com>
> wrote:
>
>> Thanks for your reply..
>>
>> On Tue, May 23, 2017 at 7:40 PM, Nicolas Guyomar <
>> nicolas.guyomar@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> If you were to know the batch size on client side to make sure it does
>>> not get above the 5kb limit, so that you can "limit the number of
>>> statements in a batch", I would suspect you do not need batch at all right
>>> ? See  https://inoio.de/blog/2016/01/13/cassandra-to-batch-or-not-
>>> to-batch/
>>>
>>> As for your question, you might get an answer on the java driver ML :
>>> java-driver-user@lists.datastax.com
>>>
>>>
>>> On 23 May 2017 at 15:25, techpyaasa . <techpyaasa@gmail.com> wrote:
>>>
>>>>
>>>> * WARN [SharedPool-Worker-1] 2017-05-22 20:28:46,204
>>>> BatchStatement.java (line 253) Batch of prepared statements for
>>>> [site24x7.wm_rawstats_tb, site24x7.wm_rawstats] is of size 6122, exceeding
>>>> specified threshold of 5120 by 1002*
>>>> We are frequently getting this message in logs, so I wanted to restrict
>>>> inserts at client side by calculating *dataSize* of insert/batch
>>>> statements before sending it to c* servers.
>>>>
>>>> We are using datastax java drivers , how can I get dataSize here??
>>>>
>>>>
>>>> Any ideas??
>>>>
>>>> Thanks in advance
>>>> TechPyaasa
>>>>
>>>
>>>
>>
>

Mime
View raw message