Uploaded image for project: 'MariaDB Connector/node.js'
  1. MariaDB Connector/node.js
  2. CONJS-219

ER_MAX_PREPARED_STMT_COUNT_REACHED in batch inserts

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.0.2
    • execute
    • None

    Description

      see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/207

      on mariadb@3.0.1

      When i use batch inserts or pool.batch
      growing
      Com_stmt_prepare
      but
      Com_stmt_close = 0

      And then i get ER_MAX_PREPARED_STMT_COUNT_REACHED error

      mariadb@2.5.6

      This does not appear

      Attachments

        Activity

          diego dupin Diego Dupin added a comment -

          problem result in external package quick-lru that handle cache eviction by group, resulting in having prepared in cached bigger than `prepareCacheLength`, that can eventually lead to reaching server max_prepared_stmt_count limit

          diego dupin Diego Dupin added a comment - problem result in external package quick-lru that handle cache eviction by group, resulting in having prepared in cached bigger than `prepareCacheLength`, that can eventually lead to reaching server max_prepared_stmt_count limit
          diego dupin Diego Dupin added a comment -

          current implementation use @alloc/quick-lru that evict previous cache by bulk. Cache maximum option `prepareCacheLength` is then not repected, because can be up to 2x that value, leading to error when reaching max_prepared_stmt_count

          diego dupin Diego Dupin added a comment - current implementation use @alloc/quick-lru that evict previous cache by bulk. Cache maximum option `prepareCacheLength` is then not repected, because can be up to 2x that value, leading to error when reaching max_prepared_stmt_count

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            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.