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":1066,"ttfb":247.4000005722046,"pageVisibility":"visible","entityId":90683,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"29375d0e-b4d8-4ffd-a7e6-5c29064b818c","navigationType":0,"readyForUser":1140.5,"redirectCount":0,"resourceLoadedEnd":1482.8000001907349,"resourceLoadedStart":259.19999980926514,"resourceTiming":[{"duration":332.20000076293945,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":259.19999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":591.4000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":332.30000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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","startTime":259.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":259.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":591.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":341.4000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":259.69999980926514,"connectEnd":259.69999980926514,"connectStart":259.69999980926514,"domainLookupEnd":259.69999980926514,"domainLookupStart":259.69999980926514,"fetchStart":259.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":259.69999980926514,"responseEnd":601.1000003814697,"responseStart":601.1000003814697,"secureConnectionStart":259.69999980926514},{"duration":388.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/2bf333562ca6724060a9d5f1535471f6/_/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","startTime":259.9000005722046,"connectEnd":259.9000005722046,"connectStart":259.9000005722046,"domainLookupEnd":259.9000005722046,"domainLookupStart":259.9000005722046,"fetchStart":259.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":259.9000005722046,"responseEnd":648.5,"responseStart":648.5,"secureConnectionStart":259.9000005722046},{"duration":392.30000019073486,"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":260.1000003814697,"connectEnd":260.1000003814697,"connectStart":260.1000003814697,"domainLookupEnd":260.1000003814697,"domainLookupStart":260.1000003814697,"fetchStart":260.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":260.1000003814697,"responseEnd":652.4000005722046,"responseStart":652.4000005722046,"secureConnectionStart":260.1000003814697},{"duration":392.5,"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":260.30000019073486,"connectEnd":260.30000019073486,"connectStart":260.30000019073486,"domainLookupEnd":260.30000019073486,"domainLookupStart":260.30000019073486,"fetchStart":260.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":260.30000019073486,"responseEnd":652.8000001907349,"responseStart":652.8000001907349,"secureConnectionStart":260.30000019073486},{"duration":392.6000003814697,"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":260.5,"connectEnd":260.5,"connectStart":260.5,"domainLookupEnd":260.5,"domainLookupStart":260.5,"fetchStart":260.5,"redirectEnd":0,"redirectStart":0,"requestStart":260.5,"responseEnd":653.1000003814697,"responseStart":653.1000003814697,"secureConnectionStart":260.5},{"duration":486.0999994277954,"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":260.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":746.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":394.1000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":260.80000019073486,"connectEnd":260.80000019073486,"connectStart":260.80000019073486,"domainLookupEnd":260.80000019073486,"domainLookupStart":260.80000019073486,"fetchStart":260.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":260.80000019073486,"responseEnd":654.9000005722046,"responseStart":654.9000005722046,"secureConnectionStart":260.80000019073486},{"duration":486,"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":260.9000005722046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":260.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":746.9000005722046,"responseStart":0,"secureConnectionStart":0},{"duration":394.30000019073486,"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":261.1000003814697,"connectEnd":261.1000003814697,"connectStart":261.1000003814697,"domainLookupEnd":261.1000003814697,"domainLookupStart":261.1000003814697,"fetchStart":261.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":261.1000003814697,"responseEnd":655.4000005722046,"responseStart":655.4000005722046,"secureConnectionStart":261.1000003814697},{"duration":604.2999992370605,"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":266.9000005722046,"connectEnd":266.9000005722046,"connectStart":266.9000005722046,"domainLookupEnd":266.9000005722046,"domainLookupStart":266.9000005722046,"fetchStart":266.9000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":266.9000005722046,"responseEnd":871.1999998092651,"responseStart":871.1999998092651,"secureConnectionStart":266.9000005722046},{"duration":1197.8999996185303,"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":267.30000019073486,"connectEnd":267.30000019073486,"connectStart":267.30000019073486,"domainLookupEnd":267.30000019073486,"domainLookupStart":267.30000019073486,"fetchStart":267.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":267.30000019073486,"responseEnd":1465.1999998092651,"responseStart":1465.1999998092651,"secureConnectionStart":267.30000019073486},{"duration":146.60000038146973,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":773.6999998092651,"connectEnd":773.6999998092651,"connectStart":773.6999998092651,"domainLookupEnd":773.6999998092651,"domainLookupStart":773.6999998092651,"fetchStart":773.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":773.6999998092651,"responseEnd":920.3000001907349,"responseStart":920.3000001907349,"secureConnectionStart":773.6999998092651},{"duration":461.9000005722046,"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","startTime":1020.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1020.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1482.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":457.19999980926514,"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","startTime":1021.1000003814697,"connectEnd":1021.1000003814697,"connectStart":1021.1000003814697,"domainLookupEnd":1021.1000003814697,"domainLookupStart":1021.1000003814697,"fetchStart":1021.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":1021.1000003814697,"responseEnd":1478.3000001907349,"responseStart":1478.3000001907349,"secureConnectionStart":1021.1000003814697},{"duration":461.3999996185303,"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","startTime":1021.4000005722046,"connectEnd":1021.4000005722046,"connectStart":1021.4000005722046,"domainLookupEnd":1021.4000005722046,"domainLookupStart":1021.4000005722046,"fetchStart":1021.4000005722046,"redirectEnd":0,"redirectStart":0,"requestStart":1021.4000005722046,"responseEnd":1482.8000001907349,"responseStart":1482.8000001907349,"secureConnectionStart":1021.4000005722046},{"duration":434.80000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1059.1000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1059.1000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1493.9000005722046,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":83,"responseStart":247,"responseEnd":264,"domLoading":257,"domInteractive":1496,"domContentLoadedEventStart":1496,"domContentLoadedEventEnd":1538,"domComplete":1935,"loadEventStart":1935,"loadEventEnd":1936,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1466.9000005722046},{"name":"bigPipe.sidebar-id.end","time":1467.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1468},{"name":"bigPipe.activity-panel-pipe-id.end","time":1469.6000003814697},{"name":"activityTabFullyLoaded","time":1554.4000005722046}],"measures":[],"correlationId":"60c82e56c89d2c","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":105,"dbReadsTimeInMs":19,"dbConnsTimeInMs":27,"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/.