Fastest way to generate 11,000,000 unique ids
问题 I am trying to create php script that generates 11,000,000 million unique ids in sequential order. However, I am trying to do it very quickly within 20 min it should generate these 11 million unique ids. Also, once it reaches 12,000,000 it should wrap around and start back at zero. Here is what I have so far. This script would would only return one id at a time. I just added a loop to see how long it would take to generate the ids. while(true){ try { $this->getAdapter()->query('INSERT INTO