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

Change the default value of optimizer_use_condition_selectivity

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • N/A
    • Optimizer
    • None

    Description

      Currently, the default for optimizer_use_condition_selectivity is 1

      https://mariadb.com/kb/en/mariadb/server-system-variables/#optimizer_use_condition_selectivity

      Meanings of values from here:

      1 Use selectivity of predicates as in MariaDB 5.5.
      2 Use selectivity of all range predicates supported by indexes.
      3 Use selectivity of all range predicates estimated without histogram.
      4 Use selectivity of all range predicates estimated with histogram.
      5 Additionally use selectivity of certain non-range predicates calculated on record sample.
      

      We could change the default to be 4. (This is not a big change as it may seem, because histograms are not collected automatically).

      Attachments

        Issue Links

          Activity

            People

              varun Varun Gupta (Inactive)
              psergei Sergei Petrunia
              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.