adspace


Explain the structure of objectid in mongodb.?

Answer Posted / Pankaj Kumar Tripathi

An ObjectID in MongoDB consists of 12 bytes, divided into three parts: a 4-byte timestamp (seconds since Unix epoch), a 3-byte machine ID, a 2-byte process ID, and a 3-byte counter incremented for each new ObjectID created on that specific process.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command syntax for inserting a document?

62


How did mongodb get its name?

60


How to define array in mongoose schema?

78