Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      First time poster... please bare with me...

      I'm looking for a reverse key index. I'm storing URLs. I could create two columns, on store the fields in reverse, but I feel a more elegant solution would be to offer a Reverse Key Index strategy.

      Attachments

        Issue Links

          Activity

            What do you mean by "reverse key index", could you elaborate on that please?

            serg Sergei Golubchik added a comment - What do you mean by "reverse key index", could you elaborate on that please?
            belugabehr BELUGABEHR added a comment -

            I suppose this ticket should be titled to more accurately: better support for postfix indexes.

            The issue is well covered here:

            http://stackoverflow.com/questions/8456272/mysql-efficient-way-for-postfix-search-like-text-aka-prefix-wildcard

            CREATE [UNIQUE|FULLTEXT|SPATIAL|REVERSE] INDEX index_name ON tbl_name (index_col_name,...)

            belugabehr BELUGABEHR added a comment - I suppose this ticket should be titled to more accurately: better support for postfix indexes. The issue is well covered here: http://stackoverflow.com/questions/8456272/mysql-efficient-way-for-postfix-search-like-text-aka-prefix-wildcard CREATE [ UNIQUE |FULLTEXT|SPATIAL|REVERSE] INDEX index_name ON tbl_name (index_col_name,...)

            A workaround could be using a persistent virtual column with the reversed data and then index it... If your database is not very big (or hammered) the penalty of this solution would not be very dramatic... but each case is different

            ampf Antonio Fernandes added a comment - A workaround could be using a persistent virtual column with the reversed data and then index it... If your database is not very big (or hammered) the penalty of this solution would not be very dramatic... but each case is different

            A solution to this problem would be to allow functional indexes, it's like

            CREATE INDEX ... (REVERSE(a))

            that is, to allow index expressions instead of columns. This is being discussed. But there're no immediate plans to have it implemented in the near future.

            As a workaround you can, indeed, create a virtual column using this expression and create an index over it.

            serg Sergei Golubchik added a comment - A solution to this problem would be to allow functional indexes, it's like CREATE INDEX ... (REVERSE(a)) that is, to allow index expressions instead of columns. This is being discussed. But there're no immediate plans to have it implemented in the near future. As a workaround you can, indeed, create a virtual column using this expression and create an index over it.

            We won't implement "REVERSE" indexes. We might implement functional indexes though.

            serg Sergei Golubchik added a comment - We won't implement "REVERSE" indexes. We might implement functional indexes though.

            People

              Unassigned Unassigned
              belugabehr BELUGABEHR
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.