php - Timestamp vs Date -time in Mongo -
i have option of storing date in mongo iso oject or timestamp in mongo.
which 1 more advisable , beneficial use , why??
timestamp
data type not use end user ( http://php.net/manual/en/class.mongotimestamp.php ), means if store timestamp have no special abilities date manipulation int
.
the "special" abilities can confined map reduce , aggregation framework whereby valid date object (in aggregation framework) reliable way time comparison.
so though can store timestamp int
, , smaller isodate()
recommend not to.
Comments
Post a Comment