According to the official document:
A BSON ObjectID is a 12-byte value consisting of a 4-byte timestamp (seconds since epoch), a 3-byte machine id, a 2-byte process id, and a 3-byte counter
But actually it's a 24-byte value like 4d7f4787ac6d604009000000
Why does this happen ?
That's a hexidecimal value. One hex digit = 4 bits. 24 hex digits = 96 bits = 12 bytes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With