I use Cassandra java driver
.
I receive 150k requests per second, which I insert to 8 tables having different partition keys.
My question is which is a better way:
- batch inserting to these tables
- inserting one by one.
I am asking this question because , considering my request size (150k), batch sounds like the better option but because all the tables have different partition keys, batch appears expensive.