WordPress multisite proper prefix attribution
It is using a DB level “auto increment” flag on the base site blogs table. Basically, when a new record is inserted into the table the blog id number is automatically created with no discrete SQL — it just “happens”. The database keeps an internal control structure for this that you don’t have direct access … Read more