Open dboehmer opened 6 years ago
note:
YouTube video ID is a 8 byte/2⁶⁴ integer encoded as base64 without padding characters.
The YouTube channel/playlist IDs are 16 byte/2¹²⁸ integers.
Standard SQL supports the BIGINT
datatype which is 4 bytes 8 bytes large and allows values up to 2⁶⁴ = 18,446,744,073,709,551,615 (unsigned). This is supported both by SQLite, PostgreSQL and MariaDB. See https://en.wikipedia.org/wiki/Integer_(computer_science)
I just merged a branch into master that realized phase I of this migration. For now we use the database IDs in decimal format. I just couldn't decide for any other system. A sequence of decimal IDs is still much better than the user-provided natural strings that share the same namespace.
In a next step we can either
I am confident that we can manage to migrate from phase I to phase II smoothly.
When I designed the URL scheme for projects like
/project/my-vacation
for projectMy Vacation
I used GitHub as role model. This doesn't seem to fit:Instead we should mimic YouTube URLs like https://youtu.be/DLzxrzFCyOs:
Then URL should look like e.g.
/project/A1b2z3/settings
.Pros:
can'tcan be renamed without problems.Stackexchange Webapps: format of the YouTube video ID