Question:

Explain the structure of ObjectID in MongoDB.

Answer:

ObjectID is a 12-byte BSON type. These are:

  • 4 bytes value representing seconds
  • 3 byte machine identifier
  • 2 byte process id
  • 3 byte counter

Keywords:

© 2017 QuizBucket.org