Hacker News new | ask | show | jobs
by sgarland 49 days ago
> InnoDB’s Three Guarantees

Rows store all columns together

Not guaranteed. The DYNAMIC (default) and COMPRESSED row formats [0] can shift larger values of variable-length columns in off-page records. In the example given, this wouldn’t occur, but it isn’t a guarantee per se. This is roughly equivalent to Postgres’ TOAST, though Postgres’ default threshold for TOAST is 1/4 of a page (2 KiB with its default 8 KiB page size), whereas InnoDB is 1/2 of a page (8 KiB with its default 16 KiB page size).

0: https://dev.mysql.com/doc/refman/9.7/en/innodb-row-format.ht...

1 comments

Very interesting, the more I learn about InnoDB, the more I'm impressed. I guess I haven't encountered a column value that's bigger than 8KiB in an InnoDB database yet.
Here's a few reasons to be dissapointed in it: https://jepsen.io/analyses/mysql-8.0.34
Ha, I was told to avoid blobs/texts columns like the plague, I guess that explains why
Pretty much every db storage worth any salt has some sort of off row storage for lob/blob crap.