I have a document with a field _id
has type ObjectId
, and a field created_at
has type Date
.
_id
is of course increasing, and the value of created_at
is current_date should be increasing.
So my question is :
- Is there any chance that 2 documents, A and B,
A._id > B._id
, butA.created_at < B.created_at
. - How to keep
created_at
as precise as possible, so the order ofcreated_at
corresponds to_id
.