Reputation: 64658
I'm about to switch some of my entities from identity to hilo id-generator.
I'm don't have a clue how the tables holding the next-high values should be designed.
Are there any best practices? What needs to be considered? Are there any pros or cons for any of the approaches?
Upvotes: 8
Views: 1861
Reputation: 52753
I don't think there's a single "best" practice, but it's important to understand how HiLo works:
So, you'll have to consider at least two variables:
After considering that, it's just a matter of taste.
Upvotes: 3