educative.io

Educative

Why is each metadata object less than 100 bytes?

In section 6, 2nd item:
Each metadata object we are storing would be small (less than 100 bytes).

In the Paste table, the ContentKey’s type is var(512) which means it can hold 512 characters. If a character is one byte then ContentKey along takes 512 bytes which is larger than 100 bytes.

Thanks @Chu for pointing this out. It should have been 1000 bytes to be consistent with the DB design. We have fixed it.