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

Provide a variable for the default cache size for create sequence

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Sequences has a default cache value of 1000.
      This task is to provide a system variable for the default cache size when creating a sequence. This variable should also be written to the binary log or optionally we should add CACHE=... to the CREATE SEQUENCE statement in the binary log if the variable is used.

      This is useful for users that would like MariaDB to behave more like PostgreSQL and/or want to avoid some gaps in the generated sequence.

      Note that having a cache of 1 instead of 1000, can make inserts into tables using sequences 2x slower and the binary log to take up 7x more space!
      See the comments in MDEV-30865 for some more information.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              monty Michael Widenius
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.