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

Implement DISABLE KEYS/ENABLE KEYS in Innodb

    XMLWordPrintable

Details

    Description

      DISABLE KEYS : ignoring secondary indexes, until they are reenabled with ENABLE KEYS.

      Also ignoring foreign key constraints, I'd guess (although, there is another setting for that)

      This is a tool that MyISAM/Aria use for the data load, into the empty table.
      The idea is to insert a lot of data (one can assume primary key order for this specific case),
      then build all indexes indexes on ENABLE.

      This should make restoring of mariadb-dump, and mariadb-import automatically faster.

      There is alternative for the data loading tools, to parse the table DDL as given by SHOW CREATE TABLE (MDEV-34740), but ENABLE/DISABLE appears to be much more convenient

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.