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

different execution plan for single- and multi-DELETE

    XMLWordPrintable

Details

    Description

      create table t1 (id int);
      insert t1 values (1),(2),(3);
      create table t2 (id int, acc_id int);
      insert t2 values (1,1),(2,2),(3,3);
      explain delete from t1 where id in (select id from t2 where acc_id = 9999);
      explain delete uc from t1 as uc where uc. id in (select p. id from t2 p where p.acc_id = 9999);
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.