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

Very slow sql execution

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4.20
    • None
    • None
    • None

    Description

      The SQL that has very long execution time has been uploaded to the MariaDB FTP Server with name slowsql.sql inside the private folder.

      Below is our findings:
      When running the query and retrieving the top 100 rows, for all the versions,
      the query results are returned in approx. 4 sec.

      This is a screen-shot for MariaDB 10.4.18:

      When running the query and retrieving the top 1000 rows, for all the versions,
      the query results are returned in approx. 32 sec.

      This is a screen-shot for MariaDB 10.5.9:

      When running the query and retrieving the top 10000 rows, the query results are returned in approx 335 sec:

      When not limiting the number of rows to be retrieved, it seem to take a long time indeed.
      So far, more than 1h has passed and the query is still executing.

      The MariaDB config parameters that we use are pretty much the same that we use in the MySQL installs that we run across the board.
      Now, when executing this same query on our MySQL instances, with the same config parameters as in MariaDB, w/o limiting the # of rows to be retrieved it takes approx 2 sec.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuanyuan_LI YUANYUAN LI
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.