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

Very bad query optimization on DELETE with subquery

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.3.14
    • Fix Version/s: 10.3
    • Component/s: Optimizer
    • Labels:
      None

      Description

      DELETEs using "WHERE ... IN (SELECT ...)" subquery syntax are much slower than DELETEs using the multi query delete syntax and a JOIN instead of a subquery.

      Original, still active, upstream report on the MySQL side is:

      https://bugs.mysql.com/bug.php?id=35794

        Attachments

          Activity

            People

            • Assignee:
              igor Igor Babaev
              Reporter:
              hholzgra Hartmut Holzgraefe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: