Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36861

TPC-H Query 21 takes 10X longer on 11.4 compared to 10.11

    XMLWordPrintable

Details

    • Q3/2025 Maintenance, Q4/2025 Server Maintenance, Q1/2026 Server Maintenance

    Description

      In testing MariaDB 10.11.13 and 11.4.7 on an Intel single socket server with the InnoDB storage engine and SERIALIZABLE transaction isolation and a scale factor 1 schema it was observed that the overall query set takes 2X the time on 11.4.7 of which most of this is attributed to Q21 that takes 10X longer 50 seconds on 11.4 compared to 5 on 10.11.

      MariaDB [(none)]> select @@version;
      +------------------+
      | @@version        |
      +------------------+
      | 10.11.13-MariaDB |
      +------------------+
      1 row in set (0.000 sec)
       
      "682F4B1EA3FE03E253036393": {
         "db": "MariaDB",
         "bm": "TPC-H",
         "tstamp": "2025-05-22 18:04:46",
         "queries": "22",
         "querysets": "1",
         "geomean": "0.90616",
         "querytime": "50"
       },
       
      "Executing Query 21 (9 of 22)",
       "1",
       "query 21 completed in 4.699 seconds",
      
      

      MariaDB [(none)]> select @@version;
      +----------------+
      | @@version      |
      +----------------+
      | 11.4.7-MariaDB |
      +----------------+
      "682F54A5355F03E213235373": {
         "db": "MariaDB",
         "bm": "TPC-H",
         "tstamp": "2025-05-22 18:45:25",
         "queries": "22",
         "querysets": "1",
         "geomean": "1.14923",
         "querytime": "105"
       },
      "Executing Query 21 (9 of 22)",
       "1",
       "query 21 completed in 50.65 seconds",

      Graphs of query sets attached

      Attachments

        1. CMP-VERSIONS-with-use-stat-tables.png
          CMP-VERSIONS-with-use-stat-tables.png
          45 kB
        2. Query_Time_Sec.png
          Query_Time_Sec.png
          13 kB
        3. Perf.png
          Perf.png
          15 kB
        4. 11.4+068a52d8be3.results
          1.24 MB
        5. 11.4.results
          1.24 MB
        6. 10.11.results
          1.24 MB
        7. 11.4-optimizer.trace
          199 kB
        8. 10.11-optimizer.trace
          140 kB
        9. 10_11_13_all_query_plans.xlsx
          96 kB
        10. 11_4_7_all_query_plans.xlsx
          100 kB
        11. MariaDB_Perf_Report_TPROC-H_mariadb-10.11.13_and_mariadb-11.4.7_AMD_Server.xlsx
          71 kB
        12. tpch_10_11_13_flamegraph.svg
          1.13 MB
        13. tpch_11_4_7_flamegraph.svg
          970 kB
        14. tpch_diff.svg
          991 kB
        15. perf_graph_all_query.png
          perf_graph_all_query.png
          18 kB
        16. Q21-11.4.png
          Q21-11.4.png
          21 kB
        17. Q21-10.11.png
          Q21-10.11.png
          22 kB

        Issue Links

          Activity

            People

              Johnston Rex Johnston
              Steve Shaw Steve Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: