I want to be able to give each instance of a particular object a unique number id in the order that they are created, so I was thinking of getting the number of the particular entity already in the datastore and add 1 to get the new number.
I know I can do something like
query = Object.all()
count = query.count()
but that has some limitations.
Does anybody know a better way to find the number of particular entities or even a better way to give objects a unique sequential number id?
Thanks!