We have an ever growing list of guid's that we need to be able to track an ever incrementing list of integer id's for. Our current implementation creates a sequence with no cache for each guid.
However, we didn't anticipate the performance hit to the database that generating thousands of sequences and selecting from them would generate. Due to the number of sequences in use at once, the plan cache is absolutely trashed. Other queries on the server are suffering from this.
Is there a better way to track an ever incrementing id for these guids that can avoid race conditions? Each guid needs to start at 1 and increment by 1 without ever skipping a number. We'll also need to be able to cut over to this new method from our current sequences.
For example, currently the guid 'F642631D-AD28-4943-8340-5E7793EB82B8' will have the sequence dbo.F642631D-AD28-4943-8340-5E7793EB82B8 created and values retrieved with select Next Value for dbo.F642631D-AD28-4943-8340-5E7793EB82B8