I've been using cassandra a lot lately. It's very common to denote ID fields in cassanda as a time-based uuid field called timeuuid
docs. In python, a timeuuuid
is mearly uuid.uuid1
from the built-in uuid
package.
Using the cassandra-driver, you might end up with a model like:
import uuid
from cassandra.cqlengine import columns
from cassandra.cqlengine.models import Model