{"id":3540,"date":"2026-11-06T11:31:50","date_gmt":"2026-11-06T10:31:50","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3540"},"modified":"2026-11-06T11:32:52","modified_gmt":"2026-11-06T10:32:52","slug":"how-to-find-in-a-mysql-table-the-heaviest-rows","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3540","title":{"rendered":"How to find in a MySQL table the heaviest rows"},"content":{"rendered":"\n<p>You can try this code, to find the the heaviest rows in a given column of a table:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT id, LENGTH(your column) AS byte_size\nFROM your-table\nWHERE LENGTH(your column) > 500 &#91;you can adapt this number to your needs]\nORDER BY byte_size DESC;<\/code><\/pre>\n\n\n\n<p>This can helpful if you want free your table of useless data, moving them i.g. to external txt or md files.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can try this code, to find the the heaviest rows in a given column of a table: This can helpful if you want free your table of useless data, moving them i.g. to external txt or md files.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[885,579,566],"tags":[34,11,14],"class_list":["post-3540","post","type-post","status-publish","format-standard","hentry","category-code","category-database","category-webmaster","tag-mariadb","tag-mysql","tag-table"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3540"}],"version-history":[{"count":3,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3540\/revisions"}],"predecessor-version":[{"id":3543,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3540\/revisions\/3543"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}