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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -