scullxbones / akka-persistence-mongo

Implementation of akka-persistence storage plugins for mongodb
Apache License 2.0
103 stars 55 forks source link

Add monotonic atomic counters for sequential ordering #95

Open scullxbones opened 8 years ago

scullxbones commented 8 years ago
filosganga commented 7 years ago

@scullxbones I am not a MongoDB expert, my assumption was that a simple timestamp field on each Atom should be enough.

Even if the MongoDB documentation reads:

If you insert a document containing an empty BSON timestamp in a top-level field, the MongoDB server will replace that empty timestamp with the current timestamp value

I have no idea how you can insert an empty BSONTimestamp using Casbah or rxMongo.