Is it possible yet, to preserve insertion order or set reliable timestamps in Meteor given that MongoDB doesn’t guarantee to return items in insertion order if no sort is specified, a document’s _id is randomly generated and setting a timestamp manually on insertion would depend upon the client’s clock?
Is it possible yet, to preserve insertion order or set reliable timestamps in Meteor
Share
I suggest a method.
While the client will run this locally and set
whento its own current time, the server’s timestamp takes priority and propagates to all subscribed clients, including the original client. You can sort ondoc.when.We’ll probably add hooks for setting timestamps automatically as part of document validations and permissions.