I think this is true, but I haven\'t found anything on the web to confirm it. I can get the first id generated for the autoincrement field using last_insert_id(), but can I
If you use LOCK TABLES, the batches should grab sequential id's.
Example:
LOCK TABLES users WRITE; UNLOCK TABLES;
This will prevent multiple threads from writing to the table at the same time.