Skip to content

MySqlBulkCopy should have a BatchSize setting #1457

Open
@rferraton

Description

@rferraton

Is your feature request related to a problem? Please describe.
I saw that the MySqlBulkCopy (which is great) use a const 1MB to read from IDataReader and write to target. I think it could lead to many IOs and disk stress on high load (parallel). I saw that before chunking with 1MB there was issue with network paquet size

Describe the solution you'd like
I suggest to add the possibility to change this value (1MB) using a class setting BatchSize or BatchLen that would have a 1MB default value
I found the const 1MB here :

const int maxLength = 1048575;

Describe alternatives you've considered

Additional context

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