Skip to content

Option to disable setting charset on pooled connections resets? #498

@bruno-viva

Description

@bruno-viva

Hi!

I launched my migration to boost mysql recently. I noticed that due to #187 , the charset is set every time I return a connection to the pool (I have to reset state due to using transactions, most of the time).

This causes SET NAMES 'utf8mb4' to be the number one query in the statistics (this extra operation likely does not cause any noticeable performance hit). But, since MySql 8+ servers already have utf8mb4 as default, is there an easy way to disable that additional SET query?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions