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

Do I have to keep the generated id's in database, to check for uniqueness? (Question) #106

Open
jasan-s opened this issue Oct 28, 2017 · 1 comment

Comments

@jasan-s
Copy link

jasan-s commented Oct 28, 2017

I will be implementing this in a browser in a client SPA. I wanted to limit the id length to the smallest length , which i think is 7 (how can I set this limit) . I'm just unclear as to how the lib will ensure the uniqueness.

@gregorygauthier
Copy link

The library uses id's of arbitrary lengths (based on the version, worker id, timestamp, and number of times called that second) and is designed to ensure uniqueness (but see issue #105). Because of this, it is impossible to set a limit while ensuring this attempted guarantee of uniqueness.

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

No branches or pull requests

2 participants