introduce a new innodb command line option that will make compressed tables writable. by default they should be read-only. if the write support is enabled, it should print a warning on startup.
olafbuitelaar, thank you for your feedback. ALTER TABLE should only read the clustered index, not secondary indexes. In fact, rebuilding a table would fix corrupted secondary indexes (I hope that MDEV-22373 is fixed now, but it is too early to tell).
I hope that page_compressed together with compressed columns (MDEV-11371) would make an acceptable replacement of ROW_FORMAT=COMPRESSED. One piece that is missing is something that allows us to avoid the problematic use of sparse files in page_compressed. I think that we must provide an option to write page_compressed tables as normal non-sparse files and let the a smart SSD compress away the sequences of zero bytes, as explained in https://mariadb.org/fest2020/ssd/.
Marko Mäkelä
added a comment - olafbuitelaar , thank you for your feedback. ALTER TABLE should only read the clustered index, not secondary indexes. In fact, rebuilding a table would fix corrupted secondary indexes (I hope that MDEV-22373 is fixed now, but it is too early to tell).
I hope that page_compressed together with compressed columns ( MDEV-11371 ) would make an acceptable replacement of ROW_FORMAT=COMPRESSED . One piece that is missing is something that allows us to avoid the problematic use of sparse files in page_compressed . I think that we must provide an option to write page_compressed tables as normal non-sparse files and let the a smart SSD compress away the sequences of zero bytes, as explained in https://mariadb.org/fest2020/ssd/ .
Are there any creditable benchmarks on the CPU, I/O, and disk space for ROW_FORMAT=COMPRESSED? I have long been skeptical about the feature. I will continue to steer people away from using that setting.
Rick James
added a comment - Are there any creditable benchmarks on the CPU, I/O, and disk space for ROW_FORMAT=COMPRESSED? I have long been skeptical about the feature. I will continue to steer people away from using that setting.
Marko Mäkelä
added a comment - Based on https://github.com/nextcloud/server/issues/25436 NextCloud appears to be using ROW_FORMAT=COMPRESSED for InnoDB tables.
rjasdfiii, I remember that back in 2006 or 2007, when I had completed the implementation of ROW_FORMAT=COMPRESSED for the InnoDB Plugin for MySQL 5.0 based on some rough ideas of Heikki Tuuri, some performance tests were run, and the results were not great. I think that we really have to compare all performance aspects to page_compressed, as suggested in MDEV-22839.
Marko Mäkelä
added a comment - rjasdfiii , I remember that back in 2006 or 2007, when I had completed the implementation of ROW_FORMAT=COMPRESSED for the InnoDB Plugin for MySQL 5.0 based on some rough ideas of Heikki Tuuri, some performance tests were run, and the results were not great. I think that we really have to compare all performance aspects to page_compressed , as suggested in MDEV-22839 .
MDEV-27736 in MariaDB Server 10.6.6 essentially reverted this change, by changing the default value of innodb_read_only_compressed to OFF. The plan to remove support for InnoDB ROW_FORMAT=COMPRESSED tables (MDEV-22367) has been cancelled.
Marko Mäkelä
added a comment - MDEV-27736 in MariaDB Server 10.6.6 essentially reverted this change, by changing the default value of innodb_read_only_compressed to OFF . The plan to remove support for InnoDB ROW_FORMAT=COMPRESSED tables ( MDEV-22367 ) has been cancelled.
People
Marko Mäkelä
Sergei Golubchik
Votes:
0Vote for this issue
Watchers:
11Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":1334.2000002861023,"ttfb":234,"pageVisibility":"visible","entityId":90683,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"2e15f197-0ce9-48f0-8969-73f8e774b2a2","navigationType":0,"readyForUser":1413.8000001907349,"redirectCount":0,"resourceLoadedEnd":1532.9000000953674,"resourceLoadedStart":241.09999990463257,"resourceTiming":[{"duration":538.2000002861023,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":241.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":779.3000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":538.6999998092651,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":241.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":241.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":780,"responseStart":0,"secureConnectionStart":0},{"duration":604.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":241.5,"connectEnd":241.5,"connectStart":241.5,"domainLookupEnd":241.5,"domainLookupStart":241.5,"fetchStart":241.5,"redirectEnd":0,"redirectStart":0,"requestStart":241.5,"responseEnd":845.7000002861023,"responseStart":845.7000002861023,"secureConnectionStart":241.5},{"duration":654,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":241.7000002861023,"connectEnd":241.7000002861023,"connectStart":241.7000002861023,"domainLookupEnd":241.7000002861023,"domainLookupStart":241.7000002861023,"fetchStart":241.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":241.7000002861023,"responseEnd":895.7000002861023,"responseStart":895.7000002861023,"secureConnectionStart":241.7000002861023},{"duration":657.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":242,"connectEnd":242,"connectStart":242,"domainLookupEnd":242,"domainLookupStart":242,"fetchStart":242,"redirectEnd":0,"redirectStart":0,"requestStart":242,"responseEnd":899.7000002861023,"responseStart":899.7000002861023,"secureConnectionStart":242},{"duration":658,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":242.2000002861023,"connectEnd":242.2000002861023,"connectStart":242.2000002861023,"domainLookupEnd":242.2000002861023,"domainLookupStart":242.2000002861023,"fetchStart":242.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":242.2000002861023,"responseEnd":900.2000002861023,"responseStart":900.2000002861023,"secureConnectionStart":242.2000002861023},{"duration":664.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":242.30000019073486,"connectEnd":242.30000019073486,"connectStart":242.30000019073486,"domainLookupEnd":242.30000019073486,"domainLookupStart":242.30000019073486,"fetchStart":242.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":242.30000019073486,"responseEnd":906.4000000953674,"responseStart":906.4000000953674,"secureConnectionStart":242.30000019073486},{"duration":753.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":242.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":995.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":664.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":242.59999990463257,"connectEnd":242.59999990463257,"connectStart":242.59999990463257,"domainLookupEnd":242.59999990463257,"domainLookupStart":242.59999990463257,"fetchStart":242.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":242.59999990463257,"responseEnd":907,"responseStart":907,"secureConnectionStart":242.59999990463257},{"duration":753.4000000953674,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":242.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":242.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":996.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":664.8000001907349,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":242.90000009536743,"connectEnd":242.90000009536743,"connectStart":242.90000009536743,"domainLookupEnd":242.90000009536743,"domainLookupStart":242.90000009536743,"fetchStart":242.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":242.90000009536743,"responseEnd":907.7000002861023,"responseStart":907.7000002861023,"secureConnectionStart":242.90000009536743},{"duration":948.5999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":244.30000019073486,"connectEnd":244.30000019073486,"connectStart":244.30000019073486,"domainLookupEnd":244.30000019073486,"domainLookupStart":244.30000019073486,"fetchStart":244.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":244.30000019073486,"responseEnd":1192.9000000953674,"responseStart":1192.9000000953674,"secureConnectionStart":244.30000019073486},{"duration":1274.9000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":244.40000009536743,"connectEnd":244.40000009536743,"connectStart":244.40000009536743,"domainLookupEnd":244.40000009536743,"domainLookupStart":244.40000009536743,"fetchStart":244.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":244.40000009536743,"responseEnd":1519.3000001907349,"responseStart":1519.3000001907349,"secureConnectionStart":244.40000009536743},{"duration":244.5,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1008.5,"connectEnd":1008.5,"connectStart":1008.5,"domainLookupEnd":1008.5,"domainLookupStart":1008.5,"fetchStart":1008.5,"redirectEnd":0,"redirectStart":0,"requestStart":1008.5,"responseEnd":1253,"responseStart":1253,"secureConnectionStart":1008.5},{"duration":234.90000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1285.3000001907349,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1285.3000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1520.2000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":235.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":1286.4000000953674,"connectEnd":1286.4000000953674,"connectStart":1286.4000000953674,"domainLookupEnd":1286.4000000953674,"domainLookupStart":1286.4000000953674,"fetchStart":1286.4000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":1286.4000000953674,"responseEnd":1521.8000001907349,"responseStart":1521.8000001907349,"secureConnectionStart":1286.4000000953674},{"duration":246.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/097ae97cb8fbec7d6ea4bbb1f26955b9-CDN/lu2cib/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":1286.8000001907349,"connectEnd":1286.8000001907349,"connectStart":1286.8000001907349,"domainLookupEnd":1286.8000001907349,"domainLookupStart":1286.8000001907349,"fetchStart":1286.8000001907349,"redirectEnd":0,"redirectStart":0,"requestStart":1286.8000001907349,"responseEnd":1532.9000000953674,"responseStart":1532.9000000953674,"secureConnectionStart":1286.8000001907349},{"duration":224.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1328.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1328.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1552.5999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":58,"responseStart":234,"responseEnd":237,"domLoading":239,"domInteractive":1594,"domContentLoadedEventStart":1594,"domContentLoadedEventEnd":1639,"domComplete":1796,"loadEventStart":1796,"loadEventEnd":1796,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1524},{"name":"bigPipe.sidebar-id.end","time":1524.9000000953674},{"name":"bigPipe.activity-panel-pipe-id.start","time":1525},{"name":"bigPipe.activity-panel-pipe-id.end","time":1526.7000002861023},{"name":"activityTabFullyLoaded","time":1666.0999999046326}],"measures":[],"correlationId":"706d7ede40e4cb","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":121,"dbReadsTimeInMs":23,"dbConnsTimeInMs":33,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
olafbuitelaar, thank you for your feedback. ALTER TABLE should only read the clustered index, not secondary indexes. In fact, rebuilding a table would fix corrupted secondary indexes (I hope that
MDEV-22373is fixed now, but it is too early to tell).I hope that page_compressed together with compressed columns (
MDEV-11371) would make an acceptable replacement of ROW_FORMAT=COMPRESSED. One piece that is missing is something that allows us to avoid the problematic use of sparse files in page_compressed. I think that we must provide an option to write page_compressed tables as normal non-sparse files and let the a smart SSD compress away the sequences of zero bytes, as explained in https://mariadb.org/fest2020/ssd/.