0

i am using python cassandra driver, i have searched that how to get last inserted id but couldn't find any solution except this, but i want to get uuid or id not timestamp

can any body help me please ?

Sahibzada
  • 143
  • 1
  • 11
  • Cassandra requires a query-based modeling approach. If you want to see the last-inserted row/id with Python (or whichever language), then you will need to design a table to support that kind of query and store that data yourself. Cassandra does not have a way to do that intrinsically. – Aaron Nov 07 '17 at 14:03

1 Answers1

0

Unfortunately you really can't. If this is a requirement you're better off creating the uuid locally and sending it to cassandra yourself.

Highstead
  • 2,291
  • 3
  • 26
  • 30