4 ms·That's essentially what the top-voted answer does, except it accounts for gaps in the IDs.by eurleif 14y agoThat's essentially what the top-voted answer does, except it accounts for gaps in the IDs.