occurrent icon indicating copy to clipboard operation
occurrent copied to clipboard

Write test that verifies that if two events are written at the same time that the order is preserved

Open johanhaleby opened this issue 3 years ago • 1 comments

i.e e1 and e2 both a t1 then make sure that the order on "read" is always [e1, e2] (good to test this after changing to "id" sorting)

johanhaleby avatar Oct 20 '20 05:10 johanhaleby

Maybe use "$natural: 1" instead of "_id". https://www.tutorialspoint.com/how-do-i-sort-natural-in-mongodb

johanhaleby avatar Oct 20 '20 05:10 johanhaleby