Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SequentialId #14

Open
albrow opened this issue May 15, 2015 · 2 comments
Open

SequentialId #14

albrow opened this issue May 15, 2015 · 2 comments

Comments

@albrow
Copy link
Owner

albrow commented May 15, 2015

Just like RandomId, SequentialId would be a struct which you can embed to satisfy the Model interface. Like the name implies, instead of randomly generating ids, it will assign ids in sequential order, by atomically incrementing a key in Redis via INCR. This would have an impact on performance (saves would take approximately twice as long) and would be suitable for applications where collisions cannot happen under any circumstances. Let me know if this is something you would like to see and I'll make it a higher priority.

@albrow albrow changed the title AutoIncrementedId SequentialId May 15, 2015
@penguinpowernz
Copy link

This would be awesome

@majimboo
Copy link

majimboo commented May 2, 2020

yes please!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants