Skip to content

Pool objects in MySqlDataSource #1264

Open
@bgrainger

Description

@bgrainger

MySqlDataSource has methods to create connections and commands. It might be a performance enhancement (from creating less garbage) to pool and reuse these objects.

Disposing a MySqlConnection or MySqlCommand would clear its internal values and return it to the MySqlDataSource.

MySqlConnection.CreateCommand could also pull from the pool if the MySqlConnection were associated with a MySqlDataSource.

It might also be possible to pool MySqlDataReader objects.

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