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

server crash when doing a simple request

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Incomplete
    • 11.4.4
    • N/A
    • Server, Virtual Columns
    • None
    • almalinux 9.5

    Description

      Hello,

      Sorry I am not expert at raising bugs here but I decided to create my one because my DB server often crashes due to simple requests, when scanned rows are significant, even after several build upgrades.

      I could reduce a request to the minimum:

      SELECT
       concat(DATE_FORMAT(`b`.`contactDate`,'%Y'),'-Q',quarter(`b`.`contactDate`))  as `contactDate`,
       group_concat(distinct `state_string`) as `concat_state_strings`
       
      FROM
       `jbm_adobe_campaign`.`dlv_kpi_xx` `a`,
       `jbm_adobe_campaign`.`dlv_xx`     `b`
       
      WHERE
       `a`.`id` = `b`.`id`
       
        AND `b`.`contactDate`  >= '2023-11-03 00:00:00'
        AND `b`.`contactDate` <= '2024-12-26 23:59:59'
       
        AND NOT (  `b`.`label` = 'Notification'  )
        AND `b`.`to_send`      >= 1000
        AND (  `a`.`email_domain` = 'ALL'  )
       
      GROUP BY
       1
      

      The first table contains 4 851 406 rows
      The second table contains 1 819 782 rows

      If I change something then it is fine.
      Ex:
      when removing AND NOT ( `b`.`label` = 'Notification' )
      the results : 5 rows in set (0,107 sec)

      Attachments

        Activity

          People

            Unassigned Unassigned
            Pascal Pascal HOARAU
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.