diff --git a/docs/2022-07-31-sql.html b/docs/2022-07-31-sql.html index 566fe23..f6ef005 100644 --- a/docs/2022-07-31-sql.html +++ b/docs/2022-07-31-sql.html @@ -255,6 +255,7 @@ and make sure size of value will never hit the limit. Prefer TEXT if you don't care, just want to store something.

+

If you need to store UUID, use VARCHAR(255).

LIMIT

Why are database columns 191 characters? +
  • + Store UUID v4 in MySQL +
  • diff --git a/docs/2023-03-30-fonts.html b/docs/2023-03-30-fonts.html index 5fcc3fa..e4548c4 100644 --- a/docs/2023-03-30-fonts.html +++ b/docs/2023-03-30-fonts.html @@ -482,6 +482,11 @@ >
  • MonoLisa
  • +
  • + Cartograph +
  • Tools

    diff --git a/posts/2022-07-31-sql.md b/posts/2022-07-31-sql.md index 259195c..163b41c 100644 --- a/posts/2022-07-31-sql.md +++ b/posts/2022-07-31-sql.md @@ -114,6 +114,8 @@ Prefer `VARCHAR` if you need to query and of course use index, and make sure size of value will never hit the limit. Prefer `TEXT` if you don't care, just want to store something. +If you need to store UUID, use `VARCHAR(255)`. + ## `LIMIT` Prefer `LIMIT 10 OFFSET 5` to `LIMIT 5, 10` to avoid misunderstanding. @@ -149,3 +151,4 @@ Use `SELECT 1` to check if database failed yet. - [How to read MySQL EXPLAINs](https://planetscale.com/blog/how-read-mysql-explains) - [Honest health checks that hit the database](https://brandur.org/fragments/database-health-check) - [Why are database columns 191 characters?](https://www.grouparoo.com/blog/varchar-191) +- [Store UUID v4 in MySQL](https://stackoverflow.com/a/43056611) diff --git a/posts/2023-03-30-fonts.md b/posts/2023-03-30-fonts.md index e969fe4..80ed1b8 100644 --- a/posts/2023-03-30-fonts.md +++ b/posts/2023-03-30-fonts.md @@ -183,6 +183,7 @@ have money: - [PragmataPro](https://fsd.it/shop/fonts/pragmatapro/) - [Berkeley Mono Typeface](https://berkeleygraphics.com/typefaces/berkeley-mono/) - [MonoLisa](https://www.monolisa.dev/) +- [Cartograph](https://connary.com/cartograph.html) ## Tools