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":1748.5,"ttfb":285.89999985694885,"pageVisibility":"visible","entityId":90683,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"5bbbaf31-7d7d-4c94-b520-07d8e1689179","navigationType":0,"readyForUser":1838.3999998569489,"redirectCount":0,"resourceLoadedEnd":2076.5,"resourceLoadedStart":291.2999999523163,"resourceTiming":[{"duration":514.0999999046326,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":291.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":805.3999998569489,"responseStart":0,"secureConnectionStart":0},{"duration":514.1999998092651,"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":291.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":291.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":805.6999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":523.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":291.7999999523163,"connectEnd":291.7999999523163,"connectStart":291.7999999523163,"domainLookupEnd":291.7999999523163,"domainLookupStart":291.7999999523163,"fetchStart":291.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":291.7999999523163,"responseEnd":815.2999999523163,"responseStart":815.2999999523163,"secureConnectionStart":291.7999999523163},{"duration":911.1000001430511,"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":291.89999985694885,"connectEnd":291.89999985694885,"connectStart":291.89999985694885,"domainLookupEnd":291.89999985694885,"domainLookupStart":291.89999985694885,"fetchStart":291.89999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":291.89999985694885,"responseEnd":1203,"responseStart":1203,"secureConnectionStart":291.89999985694885},{"duration":915.7000000476837,"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":292.09999990463257,"connectEnd":292.09999990463257,"connectStart":292.09999990463257,"domainLookupEnd":292.09999990463257,"domainLookupStart":292.09999990463257,"fetchStart":292.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":292.09999990463257,"responseEnd":1207.7999999523163,"responseStart":1207.7999999523163,"secureConnectionStart":292.09999990463257},{"duration":916,"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":292.19999980926514,"connectEnd":292.19999980926514,"connectStart":292.19999980926514,"domainLookupEnd":292.19999980926514,"domainLookupStart":292.19999980926514,"fetchStart":292.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":292.19999980926514,"responseEnd":1208.1999998092651,"responseStart":1208.1999998092651,"secureConnectionStart":292.19999980926514},{"duration":916.2999999523163,"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":292.39999985694885,"connectEnd":292.39999985694885,"connectStart":292.39999985694885,"domainLookupEnd":292.39999985694885,"domainLookupStart":292.39999985694885,"fetchStart":292.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":292.39999985694885,"responseEnd":1208.6999998092651,"responseStart":1208.6999998092651,"secureConnectionStart":292.39999985694885},{"duration":917.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":292.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":292.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1210.0999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":916.3999998569489,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":292.7999999523163,"connectEnd":292.7999999523163,"connectStart":292.7999999523163,"domainLookupEnd":292.7999999523163,"domainLookupStart":292.7999999523163,"fetchStart":292.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":292.7999999523163,"responseEnd":1209.1999998092651,"responseStart":1209.1999998092651,"secureConnectionStart":292.7999999523163},{"duration":917.1999998092651,"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":293,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":293,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1210.1999998092651,"responseStart":0,"secureConnectionStart":0},{"duration":916.7999999523163,"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":293.09999990463257,"connectEnd":293.09999990463257,"connectStart":293.09999990463257,"domainLookupEnd":293.09999990463257,"domainLookupStart":293.09999990463257,"fetchStart":293.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":293.09999990463257,"responseEnd":1209.8999998569489,"responseStart":1209.8999998569489,"secureConnectionStart":293.09999990463257},{"duration":1226.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":302.5,"connectEnd":302.5,"connectStart":302.5,"domainLookupEnd":302.5,"domainLookupStart":302.5,"fetchStart":302.5,"redirectEnd":0,"redirectStart":0,"requestStart":302.5,"responseEnd":1529.0999999046326,"responseStart":1529.0999999046326,"secureConnectionStart":302.5},{"duration":1773.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":302.59999990463257,"connectEnd":302.59999990463257,"connectStart":302.59999990463257,"domainLookupEnd":302.59999990463257,"domainLookupStart":302.59999990463257,"fetchStart":302.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":302.59999990463257,"responseEnd":2076.5,"responseStart":2076.5,"secureConnectionStart":302.59999990463257},{"duration":358.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":973.3999998569489,"connectEnd":973.3999998569489,"connectStart":973.3999998569489,"domainLookupEnd":973.3999998569489,"domainLookupStart":973.3999998569489,"fetchStart":973.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":973.3999998569489,"responseEnd":1331.7999999523163,"responseStart":1331.7999999523163,"secureConnectionStart":973.3999998569489},{"duration":512.7999999523163,"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":1653.5,"connectEnd":1653.5,"connectStart":1653.5,"domainLookupEnd":1653.5,"domainLookupStart":1653.5,"fetchStart":1653.5,"redirectEnd":0,"redirectStart":0,"requestStart":1653.5,"responseEnd":2166.2999999523163,"responseStart":2166.2999999523163,"secureConnectionStart":1653.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":85,"responseStart":286,"responseEnd":302,"domLoading":290,"domInteractive":2109,"domContentLoadedEventStart":2109,"domContentLoadedEventEnd":2161,"domComplete":2868,"loadEventStart":2868,"loadEventEnd":2869,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":2082.5999999046326},{"name":"bigPipe.sidebar-id.end","time":2083.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":2083.699999809265},{"name":"bigPipe.activity-panel-pipe-id.end","time":2085.399999856949},{"name":"activityTabFullyLoaded","time":2183.199999809265}],"measures":[],"correlationId":"ec5a98f2eb6ae6","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":119,"dbReadsTimeInMs":23,"dbConnsTimeInMs":34,"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/.