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

Use actual size when calculating memory usage of query classifier cache

    XMLWordPrintable

Details

    Description

      Currently the exact size of a cached entry is not used when limiting the amount of memory used by the query classifier cache. This may lead to the cache using more memory than what it is supposed to use.

      Further, when fields and functions are collected, separate strings are allocated for those. They should be stored as std::string_view:s pointing into the canonical statement. That would significantly reduce the amount of memory per query classifier cache entry.

      Attachments

        Issue Links

          Activity

            People

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