Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-245

Connection pool too slow

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.5
    • 1.1.6
    • Performance
    • None

    Description

      When running the benchmark suite using a connection pool (instead of establishing a new connection) it turns out that the connection time is significantly higher (depending on the number of connections in the pool) than performing a single connect.

      This is caused by an unnecessary health check (sending MYSQL_PING) when iterating over the connections in the pool.

      Instead iterating over the connections, we should keep a LRU list with unused connections, and an additional list for connection in use. When getting a connection from unused connections list, status should be checked via MYSQL_PING.

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            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.