Skip to content

Cache global type mappings #4009

Closed

Description

@roji

When NpgsqlDbType/DbType/DataTypeName are read on NpgsqlParameter without having been previously set, we infer them (e.g. from Value). This currently goes through all resolvers every time, and may affect perf in certain scenarios; we can cache this, similar to what we do for type handlers on ConnectorTypeMapping.

Activity

  1. added this to the 6.0.0 milestone on Oct 4, 2021
  2. self-assigned this
    on Oct 4, 2021
  3. added a commit that references this issue on Oct 6, 2021
    7b31e27
  4. added a commit that references this issue on Oct 6, 2021
    661a54f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions