I'm developing a system that allows to organise paper documents in folders. When folder is full, user hits 'New folder' button. This action calls nextval()
of sequence of folders.
Here is how this table of documents looks like:
IDDOC FOLDER PARTNER USER
1 1 1341 56
....
700 2 4532 56
The only problem is that gaps between folder numbers from sequence are pretty big.
Folder numbers I have now: 69, 89, 109, 129, 149, 169, 209
.
What should I use instead of sequence to avoid it?