How many unique ID? can be generated by the random number of the last three bytes of mongodb ObjectId?

what is described in the book is that each process is allowed to have a maximum of 2563 (16,777,216) different ObjectId in the same second. The maximum 24-bit random number is 16777216, but why is it in parentheses, and how is 2563 calculated outside parentheses?

Oct.02,2021

this book is funny. When copying, the format is gone.
is 256 ^ 3, that is, 2 ^ (8x3) = 2 ^ 24
I found that this number in Baidu search can find a lot of mindless copied articles, the quality of Chinese blog is worrying.


to put it simply, I don't know how to calculate 2563. What book? Is there a context?
my understanding is that 2 to the power of 24 is an integer, because this is a counter (Counter), which is the definition given by MongoDB Driver Spec. But in practice, some languages may not be able to generate digital sequences efficiently, so random numbers may be repeated before the 24th power of 2. However, in such a situation, there is no way to calculate the specific figures. So, I still don't know how to figure it out.


MongoDB authoritative Guide 2nd Edition

Menu