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

        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: