I have a junction table UserStamps
between the table Users
and Stamps
.
The UserStamps
table has the following columns:
- ID (bigint) [Identity 1,1]
- UserId (int)
- StampId (int)
- Quantity (smallint)
Each user can have up to 150 stamp at a time but he can acquire/remove/exchange stamps.
By acquiring, a new row is added.
By removing, the row is deleted from the table but exchanging replace one stamp Id with the other.
My question is: By continuous adding/removing of rows the ID column will reach the overflow state and it is known that identity always counts from the last number and ignore gaps between numbers.
When the counter reaches maximum will it fill any gaps between the IDs if not how can I handle the overflow situation ?