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

Reduce SP memory usage

    XMLWordPrintable

Details

    Description

      This contributed patch came from Jerome Brauge. Please find the patch attached.

      As stored procedures seems to be very memory aggressive, I found two possible optimizations to avoid having three strings containing the stored procedure code in memory.

      Probably, same optimizations may be applied to packages.
      I haven’t add any tests because I think everything is covered by the existing tests.

      What do you think about ?

      In a second time, I think working on SP cache.

      Currently it’ s a simple hash table and all the hash table is flushed as soon as the threshold (stored_program_cache) is reached.

      It's not very good.

      We could :

      • Use a more intelligent cache (LFU ?)
      • Add some performance counters

      Regards.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bar Alexander Barkov
              Votes:
              2 Vote for this issue
              Watchers:
              5 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.