Skip to content

Cache global type mappings #4009

@roji

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions