How to find dataSize at client side?

9 views
Skip to first unread message

techpyaasa

unread,
May 24, 2017, 6:42:42 AM5/24/17
to DataStax Java Driver for Apache Cassandra User Mailing List
 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??

Thanks in advance
TechPyaasa

Nicolas Guyomar

unread,
May 24, 2017, 8:22:56 AM5/24/17
to java-dri...@lists.datastax.com
Hi,

But I'm still curious to know why you are using batches if you are willing to remove some statement from it.

Nicolas

--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.

Reply all
Reply to author
Forward
0 new messages