Skip to content

Fix: default to 20-char uniqids#90

Merged
TorstenDittmann merged 2 commits intomainfrom
fix-default-id-padding
Nov 24, 2021
Merged

Fix: default to 20-char uniqids#90
TorstenDittmann merged 2 commits intomainfrom
fix-default-id-padding

Conversation

@kodumbeats
Copy link
Copy Markdown
Contributor

So we don't have to update every $database->getId() in Appwrite, this PR sets a default padding of 7 extra chars, leading to a 20-char unique ID, 13 chars based on time, 7 random.

This should prevent most instances of collision across systems in tandem with unique indexes in the database.

@TorstenDittmann TorstenDittmann merged commit 102ee1d into main Nov 24, 2021
@TorstenDittmann TorstenDittmann deleted the fix-default-id-padding branch November 24, 2021 14:53
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.

2 participants