I want to send multiple records to insert in a table in single REST API call to Cassandra. Does datastax api service allow this? If yes, please share sample request JSON
I want to send multiple records to insert in a table in single REST API call to Cassandra. Does datastax api service allow this? If yes, please share sample request JSON
Inserting multiple records is not supported with the REST API because it will overload the coordinator and is inefficient as far as throughput goes. The same mechanism is not recommended with the native CQL protocol since it achieves the opposite of the outcome you're after.
We recommend making multiple requests for each insert operation to maximise throughput and performance of the cluster. Cheers!
5 People are following this question.
How is Document API data mapped to Cassandra columns?
Why does paging through documents with Stargate return "Illegal base64 character 20"?
Are GraphQL subscriptions or websockets coming to Stargate?
How do we get started with data modeling using the Stargate REST API?
How do I write to a tuple with a timestamp type through the Stargate API?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use