They also are ActivityPub objects that expand to the full id ✨
-
RE: https://mastodon.social/@dansup/115876278291815667
They also are ActivityPub objects that expand to the full id

We use snowflake ids, then hashids in permalinks that expand. It's beautifully simple, yet clever.
d9VqOD2_gu => 236972985113375774
https://browser.pub/https://loops.video/v/d86zgftFT9?rid=d9VqOD2_gu
-
R AodeRelay shared this topicR ActivityRelay shared this topic
-
RE: https://mastodon.social/@dansup/115876278291815667
They also are ActivityPub objects that expand to the full id

We use snowflake ids, then hashids in permalinks that expand. It's beautifully simple, yet clever.
d9VqOD2_gu => 236972985113375774
https://browser.pub/https://loops.video/v/d86zgftFT9?rid=d9VqOD2_gu
@dansup I don't understand why do you have to convert the alphanumeric string to just numbers though?
-
R AodeRelay shared this topic
-
@dansup I don't understand why do you have to convert the alphanumeric string to just numbers though?
@bojanlandekic the long numbers are the keys to each video, but are long, so we convert them to a shorter alphanumeric string by leveraging a longer "alphabet" to represent the numbers more efficiently.
-
@bojanlandekic the long numbers are the keys to each video, but are long, so we convert them to a shorter alphanumeric string by leveraging a longer "alphabet" to represent the numbers more efficiently.
@dansup hmmm I sort of understand, but why is the conversion even required? Why can't the alphanumeric things be the database keys themselves? Why must they be just numbers?