Type:
Task
Priority:
Major
Resolution:
Unresolved
Fix Version/s:
None
As was discussed in https://mariadb.slack.com/archives/CHTLSLQEP/p1575543442067300 (attached here) transaction_registry table has many drawbacks: performance, hard to backup, not node-portable. The feature of transaction-precise versioning as described in https://mariadb.com/kb/en/library/temporal-data-tables/ actually does not require transaction_registry translation: we store timestamps as usual , but update row_end of changed rows at commit time.
Clustered index records contain DB_TRX_ID, DB_ROLL_PTR fields with non-null values in case they was changed by some open transaction. Clustered index is ordered by PK, explicit or implicit. In case there is no explicit PK in table, first non-null UK is then used or if no such UK exists then auto-generated DB_ROW_ID is added to clustered index. So there are 3 variants of ordering: explicit PK, non-null UK, DB_ROW_ID. We cannot search quickly by DB_TRX_ID.
Every open transaction has 2 undo logs attached per each changed table. Undo log cannot be attached to more than 1 transaction. One of undo logs is used for non-temporary tables, another one is for temporary ones. Non-temporary undo log must be scanned and corresponding clustered index rows selected by PK (one of 3 variants above).
Redo log must updated as well, otherwise crash recovery wil end up with wrong values of row_end.
Upgrade process converts TRX_ID-based tables to timestamp-based. As such kind of tables cannot be backed up, transaction_registry table is safe to drop as long as all TRX_ID-based tables converted.
{"report":{"fcp":994,"ttfb":273.10000014305115,"pageVisibility":"visible","entityId":67653,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"4f83acbd-c4d0-455b-bc1d-99f83f150671","navigationType":0,"readyForUser":1089.7000000476837,"redirectCount":0,"resourceLoadedEnd":670.4000000953674,"resourceLoadedStart":285,"resourceTiming":[{"duration":120.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":285,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":405.5,"responseStart":0,"secureConnectionStart":0},{"duration":120.40000009536743,"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":285.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":285.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":405.80000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":129,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":285.5,"connectEnd":285.5,"connectStart":285.5,"domainLookupEnd":285.5,"domainLookupStart":285.5,"fetchStart":285.5,"redirectEnd":0,"redirectStart":0,"requestStart":285.5,"responseEnd":414.5,"responseStart":414.5,"secureConnectionStart":285.5},{"duration":248,"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":286.10000014305115,"connectEnd":286.10000014305115,"connectStart":286.10000014305115,"domainLookupEnd":286.10000014305115,"domainLookupStart":286.10000014305115,"fetchStart":286.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":286.10000014305115,"responseEnd":534.1000001430511,"responseStart":534.1000001430511,"secureConnectionStart":286.10000014305115},{"duration":251.40000009536743,"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":286.40000009536743,"connectEnd":286.40000009536743,"connectStart":286.40000009536743,"domainLookupEnd":286.40000009536743,"domainLookupStart":286.40000009536743,"fetchStart":286.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":286.40000009536743,"responseEnd":537.8000001907349,"responseStart":537.8000001907349,"secureConnectionStart":286.40000009536743},{"duration":251.59999990463257,"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":286.60000014305115,"connectEnd":286.60000014305115,"connectStart":286.60000014305115,"domainLookupEnd":286.60000014305115,"domainLookupStart":286.60000014305115,"fetchStart":286.60000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":286.60000014305115,"responseEnd":538.2000000476837,"responseStart":538.2000000476837,"secureConnectionStart":286.60000014305115},{"duration":251.90000009536743,"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":286.7000000476837,"connectEnd":286.7000000476837,"connectStart":286.7000000476837,"domainLookupEnd":286.7000000476837,"domainLookupStart":286.7000000476837,"fetchStart":286.7000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":286.7000000476837,"responseEnd":538.6000001430511,"responseStart":538.6000001430511,"secureConnectionStart":286.7000000476837},{"duration":270.59999990463257,"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":286.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":286.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.5,"responseStart":0,"secureConnectionStart":0},{"duration":252,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":287.10000014305115,"connectEnd":287.10000014305115,"connectStart":287.10000014305115,"domainLookupEnd":287.10000014305115,"domainLookupStart":287.10000014305115,"fetchStart":287.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":287.10000014305115,"responseEnd":539.1000001430511,"responseStart":539.1000001430511,"secureConnectionStart":287.10000014305115},{"duration":270.5,"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":287.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":287.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":557.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":252.29999995231628,"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":287.40000009536743,"connectEnd":287.40000009536743,"connectStart":287.40000009536743,"domainLookupEnd":287.40000009536743,"domainLookupStart":287.40000009536743,"fetchStart":287.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":287.40000009536743,"responseEnd":539.7000000476837,"responseStart":539.7000000476837,"secureConnectionStart":287.40000009536743},{"duration":315.59999990463257,"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":297.10000014305115,"connectEnd":297.10000014305115,"connectStart":297.10000014305115,"domainLookupEnd":297.10000014305115,"domainLookupStart":297.10000014305115,"fetchStart":297.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":297.10000014305115,"responseEnd":612.7000000476837,"responseStart":612.7000000476837,"secureConnectionStart":297.10000014305115},{"duration":373.2999999523163,"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":297.10000014305115,"connectEnd":297.10000014305115,"connectStart":297.10000014305115,"domainLookupEnd":297.10000014305115,"domainLookupStart":297.10000014305115,"fetchStart":297.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":297.10000014305115,"responseEnd":670.4000000953674,"responseStart":670.4000000953674,"secureConnectionStart":297.10000014305115},{"duration":36.40000009536743,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":578.5,"connectEnd":578.5,"connectStart":578.5,"domainLookupEnd":578.5,"domainLookupStart":578.5,"fetchStart":578.5,"redirectEnd":0,"redirectStart":0,"requestStart":578.5,"responseEnd":614.9000000953674,"responseStart":614.9000000953674,"secureConnectionStart":578.5},{"duration":534,"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":687.9000000953674,"connectEnd":687.9000000953674,"connectStart":687.9000000953674,"domainLookupEnd":687.9000000953674,"domainLookupStart":687.9000000953674,"fetchStart":687.9000000953674,"redirectEnd":0,"redirectStart":0,"requestStart":687.9000000953674,"responseEnd":1221.9000000953674,"responseStart":1221.9000000953674,"secureConnectionStart":687.9000000953674}],"fetchStart":0,"domainLookupStart":19,"domainLookupEnd":37,"connectStart":37,"connectEnd":58,"secureConnectionStart":47,"requestStart":59,"responseStart":273,"responseEnd":296,"domLoading":277,"domInteractive":1162,"domContentLoadedEventStart":1163,"domContentLoadedEventEnd":1218,"domComplete":1735,"loadEventStart":1735,"loadEventEnd":1736,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1142.1000001430511},{"name":"bigPipe.sidebar-id.end","time":1142.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1143},{"name":"bigPipe.activity-panel-pipe-id.end","time":1145.6000001430511},{"name":"activityTabFullyLoaded","time":1228.7000000476837}],"measures":[],"correlationId":"2f6662253d99f3","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":125,"dbReadsTimeInMs":32,"dbConnsTimeInMs":43,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}