dotnet / dotnet/SqlClient

SqlBulkCopy - ReadWriteColumnValueAsync creates lot of garbage

Open
#353 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
989
Forks
340
Avg merge
4d 18h
Merged PRs (30d)
69

Description

ReadWriteColumnValueAsync is written generically, retrieving an object representation of the row's value and passing around `object` between the read & write. Usually this is a value type that gets boxed, creating GC pressure.

### Describe the solution you'd like
I would like ReadWriteColumnValueAsync to leverage generics and the full IDataReader interface to avoid boxing unless absolutely necessary.

This read value portion should also respect `IDataReader.GetFieldType` and its underlying value getters (`GetDecimal`, etc.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.