Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-1401

Allow multiple store/use pairs in cache filter rules

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.1.6
    • 2.3.0
    • cache
    • None
    • MXS-SPRINT-56

    Description

      The cache filter currently supports only one object with store/use values. An array of store/use values would allow more precise caching rules.

      Here is the example JSON that would allow the definition of multiple rules in a single file.

      [
          {
              "store": [
                  {
                      "attribute": "table",
                      "op": "=",
                      "value": "test.t1"
                  }
              ],
              "use": [
                  {
                      "attribute": "user",
                      "op": "=",
                      "value": "'bob'@'%'"
                  }
              ]
          },{
              "store": [
                  {
                      "attribute": "table",
                      "op": "=",
                      "value": "test.t2"
                  }
              ],
              "use": [
                  {
                      "attribute": "user",
                      "op": "=",
                      "value": "'alice'@'%'"
                  }
              ]
          }
      ]
      

      Attachments

        Activity

          People

            johan.wikman Johan Wikman
            markus makela markus makela
            Votes:
            1 Vote for this issue
            Watchers:
            2 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.