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

SELECT if there is IN clause with binary UUID in binary form is extremely slow since MariaDB 10.5.9

    XMLWordPrintable

Details

    Description

      table with primery key binary(16)

      `SELECT from table WHERE key IN (binary form ids, ....)` is extremly slow

      while

      `SELECT from table WHERE key IN ((0x11e6a2ad166fc342abde002590a2360a),
      (0x11e6a2ad16750370aeaf002590a2360a),
      (0x11e6a2ad167a186a9e19002590a2360a),....)`
      is perfectly fast.

      IDs in binary form I mean this: https://tinyurl.com/ycfyftby

      Attachments

        1. log_fast.log
          96 kB
        2. log_slow.log
          6 kB
        3. screenshot-1.png
          screenshot-1.png
          44 kB

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              forgie Ján Forgáč
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start 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.