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

Feature Request: Support for "temporarily" deterministic functions for performance reasons

    XMLWordPrintable

Details

    Description

      Non-Deterministic functions in a WHERE are re-executed for every potential matching row.

      For cases where I believe the result of a function will not change while a query is currently running, it would be nice to be able to mark it as being somewhere being between deterministic and non-deterministic.

      This is useful for cases where the result of the function depends on other tables or server variables but you still know, the result will not change for the current select, e.g. for cases, where you could normally do "set @variable=function(); SELECT .... WHERE @variable = 123"

      Marking such a function as fully deterministic will speed up the query correctly, but might have unintended side effects on other parts of the system (for example binlogging).

      Attachments

        Activity

          People

            Unassigned Unassigned
            warp Markus Peter
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.