I want to add a new field in my candidates collection which is called shortCandidateId. This ID would be a substring of the first 5 characters from the actual ID of the document, and in lower case.
For example:
Regular Id from Firebase version: 0KdeD344kfed
Shortened version: 0kded
Is it reliable to use this shortened version to get the data from the document?
Are there possible collision when transforming the candidate ID to this shortened version?
97ADsjuTPxOktx5FC1gx = 97aDs
97ADsjuTPxOktx5FC12x = 97aDs
In this case I'd have two candidates with the same ID and I could not fetch the correct one.