Skip to content

Pipeline queries when possible #1088

Closed
@bgrainger

Description

@bgrainger

When resetting a connection, a "Reset Connection" packet is sent, then SET NAMES utf8mb4; to fix the collation (which is not reset properly). For most MySQL Servers, those two packets could be pipelined, which would halve the latency of resetting a connection.

This was previously done as #483 but reverted for #486 because it's not compatible with Aurora.

Consider adding a new connection string option that enables pipelining.

  • Should it be enabled by default, with opt-out for Aurora?
    • Or should it be optional, for users who want higher performance?
  • Can we detect Aurora and automatically opt out?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions