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

Use UUIDv4 for item IDs to prevent collisions #23

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Use UUIDv4 for item IDs to prevent collisions #23

merged 1 commit into from
Jun 5, 2024

Conversation

kflorence
Copy link
Owner

The previous solution of using an incrementing integer would result in collisions between items stored in state and beams, since beam IDs are generated on the fly and not stored in state, and the unique ID was only incremented when the ID was not stored in state. This makes item IDs a little harder to read, but ensure they remain unique across all items.

The previous solution of using an incrementing integer would result in
collisions between items stored in state and beams, since beam IDs are
generated on the fly and not stored in state, and the unique ID was only
incremented when the ID was not stored in state. This makes item IDs a
little harder to read, but ensure they remain unique across all items.
@kflorence kflorence merged commit 5d597e3 into main Jun 5, 2024
1 check passed
@kflorence kflorence deleted the 22 branch June 5, 2024 19:42
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

Successfully merging this pull request may close these issues.

1 participant