We help IT Professionals succeed at work.

how to sequence or auto increment  in cassandra  from java /Spring code

Medium Priority
97 Views
Last Modified: 2020-01-13
how to sequence or auto increment  in cassandra  from java /Spring code
Comment
Watch Question

you need to do this within a table, with a field that holds the IDs and respectively increment  the corresponding values.
CERTIFIED EXPERT

Author

Commented:
How can we do it Cassandra ?
Hello

There is no "automated" way like in Oracle or possibly in MSSQL.
You will have to create a table for that.
Then a field like: myidindex maybe of type int.
Then, you should increment its value manually, according to your needs (for ex. each time: +1)