Centos 6.6, SSD Hard Drive, 6Gb of Ram, Intel Xeon L5640
10.1.30, 5.5.59, 10.0.34
Description
Hello,
I have tested this with MariaDB 10.0 and 10.1, and the result is the same.
Creating a temporary table using Aria is a lot slower than using MyISAM.
I'll gives here some examples.
Creating a Temporary Table of ~800Mb using MyISAM
MariaDB [admin_fnf_beta]> CREATE TEMPORARY TABLE table9 engine=MyISAM AS (SELECT * FROM ibf_forums_posts);
Query OK, 1576320 rows affected (11.51 sec)
Records: 1576320 Duplicates: 0 Warnings: 0
Creating a Temporary Table of ~800Mb using Aria with default pagecache buffer
MariaDB [admin_fnf_beta]> CREATE TEMPORARY TABLE table10 engine=Aria AS (SELECT * FROM ibf_forums_posts);
Query OK, 1576320 rows affected (19.71 sec)
Records: 1576320 Duplicates: 0 Warnings: 0
Creating a Temporary Table of ~800Mb using Aria with 1GB pagecache buffer
MariaDB [admin_fnf_beta]> CREATE TEMPORARY TABLE table10 engine=Aria AS (SELECT * FROM ibf_forums_posts);
Query OK, 1576320 rows affected (16.53 sec)
Records: 1576320 Duplicates: 0 Warnings: 0
As you can see, Aria is faster using the pagecache buffer for the temporary table, but its still slower than MyISAM using the disk.
This also happens with small temporary tables.
Example:
Creating a Temporary Table of ~7Mb using MyISAM
MariaDB [admin_fnf_beta]> CREATE TEMPORARY TABLE table2 engine=MyISAM AS (SELECT * FROM ibf_forums_topics);
Query OK, 57492 rows affected (0.44 sec)
Records: 57492 Duplicates: 0 Warnings: 0
Creating a Temporary Table of ~7Mb using Aria with default pagecache buffer
MariaDB [admin_fnf_beta]> CREATE TEMPORARY TABLE table3 engine=Aria AS (SELECT * FROM ibf_forums_topics);
Query OK, 57492 rows affected (0.62 sec)
Records: 57492 Duplicates: 0 Warnings: 0
This issue becomes more important because we can't change the default internal temporary table storage engine. Its defaulted to Aria and we can only change it if we recompile MariaDB.
Any info if the fix will be on the next version or if it will take too long to add it?
Dimitris Chatzis
added a comment - 10.1.31 is out but don't have that fix
Any info if the fix will be on the next version or if it will take too long to add it?
The fix already exists, adding it to any version takes minutes.
But it's a rather extensive change, so the question we're considering now is whether it's sufficiently safe to add it to 10.1-GA or not. The testing so far didn't show any problems, so it might go into 10.1 after all.
Sergei Golubchik
added a comment - The fix already exists, adding it to any version takes minutes.
But it's a rather extensive change, so the question we're considering now is whether it's sufficiently safe to add it to 10.1-GA or not. The testing so far didn't show any problems, so it might go into 10.1 after all.
You mean that it is already included at 10.2.x and 10.3.x and not yet at 10.1.x ?
As i didn't see that info at the changelog related to that....
Also if you decide to add it at 10.1.x as it was not cause any issues is a month enough so you can add it on the next version of 10.1.x ?
Dimitris Chatzis
added a comment - Thanks for your reply !
"The fix already exists"
You mean that it is already included at 10.2.x and 10.3.x and not yet at 10.1.x ?
As i didn't see that info at the changelog related to that....
Also if you decide to add it at 10.1.x as it was not cause any issues is a month enough so you can add it on the next version of 10.1.x ?
Fixed performance problem with Aria by speeding up find_head().
The result of this patch is a up to 2x or more speed up for inserts without keys for
format PAGE.
Michael Widenius
added a comment - Fixed performance problem with Aria by speeding up find_head().
The result of this patch is a up to 2x or more speed up for inserts without keys for
format PAGE.
People
Michael Widenius
Venâncio Ferreira
Votes:
2Vote for this issue
Watchers:
8Start 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":1091.7000000476837,"ttfb":226,"pageVisibility":"visible","entityId":51264,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4cbcabf2-07a9-41f7-8e38-b3b7eab233f1","navigationType":0,"readyForUser":1165.2000000476837,"redirectCount":0,"resourceLoadedEnd":819.5,"resourceLoadedStart":238.09999990463257,"resourceTiming":[{"duration":34.700000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":238.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":238.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":272.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":34.799999952316284,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":238.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":238.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":273.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":383.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":238.59999990463257,"connectEnd":238.59999990463257,"connectStart":238.59999990463257,"domainLookupEnd":238.59999990463257,"domainLookupStart":238.59999990463257,"fetchStart":238.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":277.7999999523163,"responseEnd":622.2000000476837,"responseStart":308.7000000476837,"secureConnectionStart":238.59999990463257},{"duration":580.4000000953674,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/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":239.09999990463257,"connectEnd":239.09999990463257,"connectStart":239.09999990463257,"domainLookupEnd":239.09999990463257,"domainLookupStart":239.09999990463257,"fetchStart":239.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":279.2999999523163,"responseEnd":819.5,"responseStart":345.09999990463257,"secureConnectionStart":239.09999990463257},{"duration":104.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":239.29999995231628,"connectEnd":239.29999995231628,"connectStart":239.29999995231628,"domainLookupEnd":239.29999995231628,"domainLookupStart":239.29999995231628,"fetchStart":239.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":279.39999985694885,"responseEnd":344,"responseStart":342.5,"secureConnectionStart":239.29999995231628},{"duration":110.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":239.29999995231628,"connectEnd":239.29999995231628,"connectStart":239.29999995231628,"domainLookupEnd":239.29999995231628,"domainLookupStart":239.29999995231628,"fetchStart":239.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":279.2999999523163,"responseEnd":349.59999990463257,"responseStart":348.2999999523163,"secureConnectionStart":239.29999995231628},{"duration":40.200000047683716,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":239.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":239.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":279.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":105.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":239.5,"connectEnd":239.5,"connectStart":239.5,"domainLookupEnd":239.5,"domainLookupStart":239.5,"fetchStart":239.5,"redirectEnd":0,"redirectStart":0,"requestStart":280.2000000476837,"responseEnd":345,"responseStart":344,"secureConnectionStart":239.5},{"duration":168.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":239.59999990463257,"connectEnd":239.59999990463257,"connectStart":239.59999990463257,"domainLookupEnd":239.59999990463257,"domainLookupStart":239.59999990463257,"fetchStart":239.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":282.89999985694885,"responseEnd":407.89999985694885,"responseStart":406.7000000476837,"secureConnectionStart":239.59999990463257},{"duration":41.39999985694885,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/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":239.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":239.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":281.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":199.70000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/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":239.79999995231628,"connectEnd":239.79999995231628,"connectStart":239.79999995231628,"domainLookupEnd":239.79999995231628,"domainLookupStart":239.79999995231628,"fetchStart":239.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":284.5,"responseEnd":439.5,"responseStart":435.89999985694885,"secureConnectionStart":239.79999995231628},{"duration":391.60000014305115,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":248.09999990463257,"connectEnd":248.09999990463257,"connectStart":248.09999990463257,"domainLookupEnd":248.09999990463257,"domainLookupStart":248.09999990463257,"fetchStart":248.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":405.7000000476837,"responseEnd":639.7000000476837,"responseStart":629.3999998569489,"secureConnectionStart":248.09999990463257},{"duration":371.7000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":268.59999990463257,"connectEnd":268.59999990463257,"connectStart":268.59999990463257,"domainLookupEnd":268.59999990463257,"domainLookupStart":268.59999990463257,"fetchStart":268.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":416.7999999523163,"responseEnd":640.2999999523163,"responseStart":631.8999998569489,"secureConnectionStart":268.59999990463257},{"duration":128.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":769.5,"connectEnd":769.5,"connectStart":769.5,"domainLookupEnd":769.5,"domainLookupStart":769.5,"fetchStart":769.5,"redirectEnd":0,"redirectStart":0,"requestStart":867,"responseEnd":897.7999999523163,"responseStart":896.7999999523163,"secureConnectionStart":769.5},{"duration":215.79999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1046.7999999523163,"connectEnd":1046.7999999523163,"connectStart":1046.7999999523163,"domainLookupEnd":1046.7999999523163,"domainLookupStart":1046.7999999523163,"fetchStart":1046.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1230.3999998569489,"responseEnd":1262.5999999046326,"responseStart":1261.7999999523163,"secureConnectionStart":1046.7999999523163},{"duration":146.70000004768372,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1084.3999998569489,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1084.3999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1231.0999999046326,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":88,"responseStart":226,"responseEnd":269,"domLoading":230,"domInteractive":1262,"domContentLoadedEventStart":1262,"domContentLoadedEventEnd":1314,"domComplete":1702,"loadEventStart":1702,"loadEventEnd":1702,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1240.0999999046326},{"name":"bigPipe.sidebar-id.end","time":1240.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":1240.8999998569489},{"name":"bigPipe.activity-panel-pipe-id.end","time":1242.5},{"name":"activityTabFullyLoaded","time":1337.3999998569489}],"measures":[],"correlationId":"90661a4cfc8ce7","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":87,"dbReadsTimeInMs":17,"dbConnsTimeInMs":27,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
"The fix should be pushed to 10.2 or 10.3 soon."
What about 10.1 ?