Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created December 18, 2023 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahemoff/d432af53949c9a96fc4d7696f0a4c8a3 to your computer and use it in GitHub Desktop.
Save mahemoff/d432af53949c9a96fc4d7696f0a4c8a3 to your computer and use it in GitHub Desktop.
MySQL Table compression
# copied from https://twitter.com/mahemoff/status/1092181875785957377
Storing 1 million podcast descriptions with MySQL InnoDB
SQL dump gz: 361,734,351 bytes
Uncompressed DB: 1,405,091,840 bytes
DB size per block size setting:
1KB: 870,318,080 bytes
2KB: 767,557,632 bytes
4KB: 704,643,072 bytes
8KB: 700,448,768 bytes 🏆
16KB: 1,262,485,504 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment