--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
If you need to query my creation month then create a dedicated
'created_month' property that you fill upon creation time.
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJNH2ArAAoJEADcfz7u4AZjAdsLvj26PMQY61bXMjgj6mzbY/Rx
PThQ+vr4Uhb6y2QM6TRgm66Gi2YfEWfhO+ASKVER2GPa0zVvqVmcaEfqNE5GyAVe
CEQC1BW0ZrkyzLc7VM4AUcVdy4jM2elTlaJfZS5pElcm0QBKljcaXjLuSFGbqyol
pBmYXI+r/ux0BcUeZ2D6fPjau/rY/0WKOTjUTmS/r7v+GKbTq4ec60QvVgnVxZym
YxsJ3h8M52ZV3ldg2EefyyerTrq+MdaxC3eSFtrC7SUeiroJWAIB7nBfHol63qGh
PalwWpEUKmGLHdqkddI6OIe+21XImECwk1M4nBW2PAQCFZLvHuREKDthGlTIalVU
HwZRqNtbuw3IS1Gu0UK3qH5zPzHqpCZ60JCjP63YwBudxToHSnpAT1ZhJqKqPNI8
lc/xAkGP+dvMMQt6AheZPLStQ3Ysh/LaCfJctLP1GG6I5N2P313zk/+GvXI5GdOC
Kl7yhYfsKDN5eMWqWQ+qsSTiOZYTEY8=
=RZEg
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
On Sat, Jan 1, 2011 at 3:23 PM, Sam Millman <smil...@nhbs.co.uk> wrote:
> The problem is that the timestamp is used as part of the calculation in the
> ID it is not actually in there, plus the ID is a hash (md5 I believe) so it
> is one way. Just add a ts time stamp using the drivers MongoDate object that
> way it is not redundant and can be used for more than just month.
It is not hashed, and the date (in seconds) are the first 4 bytes.
http://mongodb.org/display/DOCS/Object+IDs