Comment Comment by MichaelGG Have you given any more thought to ... not multithreading it? Since you're scaling across servers, apply the same concept across cores. Presto, no more bottleneck on atomically incrementing an ID. parent MichaelGG 13 years ago