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

DELETE with CASCADE takes a long time when Galera is enabled

Details

    Description

      MDEV-13498 fixed a bug that DELETE with CASCADE was very slow due to a Galera-related check even when Galera was not enabled.

      After that fix, the operation is still slow when Galera is enabled.

      When I notified seppo about MDEV-13498, on August 17 he mentioned that the purpose of this condition is to avoid evaluating a potentially expensive condition. Now it seems that evaluating this filtering condition may cost more than the cost of evaluating the supposedly-expensive condition.
      I suggested the use of a lossy filter that would use a much simpler and faster data structure and algorithm than the std::find() on the std::deque, something like a hash table. This lossy filter would be allowed to fail safely, causing unnecessary evaluation of the supposedly-expensive condition.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Marko Mäkelä made transition -
            Open Confirmed
            2m 37s 1
            Jan Lindström (Inactive) made transition -
            Confirmed In Progress
            13d 23h 25m 1
            Jan Lindström (Inactive) made transition -
            In Progress In Review
            4h 41m 1
            Jan Lindström (Inactive) made transition -
            Stalled In Review
            4h 15m 1
            Marko Mäkelä made transition -
            In Review Stalled
            22h 12m 2
            Jan Lindström (Inactive) made transition -
            Stalled In Progress
            3d 15h 29m 1
            Jan Lindström (Inactive) made transition -
            In Progress Closed
            6m 33s 1

            People

              jplindst Jan Lindström (Inactive)
              marko Marko Mäkelä
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.