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

Big performance bug if true

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      https://mariadb.com/docs/server/reference/data-types/serial
      says serial is an alias for: `BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE`

      But it also acknowledges that `This shorthand data type is often used to define primary keys.`

      Which means, most people who use `serial` do it like `id SERIAL PRIMARY KEY`

      Which means, *Two* separate indexes get created on the same key, most of cases, some sort of id.

      Which in turn, eats up space and performance unnecessarily.

      I think a good solution would be to remove `unique` off `serial` or replacing it with `primary key` as default. i don't know.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chadsec1 Ahmad W
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  0d
                  Logged:
                  Time Not Required
                  Not Specified

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.