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

Support DESC indexes in loose scan optimization

    XMLWordPrintable

Details

    Description

      Group-min-max (aka Loose Scan) optimization does not work for reverse-ordered indexes:

      looking in opt_range.cc one can see in get_best_group_min_max() :

            for (uint i= 0; i < table->actual_n_key_parts(cur_index_info); i++)
            {
              if (cur_index_info->key_part[i].key_part_flag & HA_REVERSE_SORT)
              {
                cause="Reverse-ordered (not supported yet)";
                goto next_index;
              }
            }
      

      This task is to support it.

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              psergei Sergei Petrunia
              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.