Skip to content

insertBatch to generate multiple INSERT statements #888

@samdark

Description

@samdark

Right now, if the batch is too big, we're getting into limits of DBMS like the following:

image

The screenshot is from PostgreSQL.

I suggest doing two things:

  1. Introduce configurable parameter to configure max number of parameters.
  2. Default it per DBMS. For PostgreSQL it could be 65535.
  3. If max is reached, move the rest of the data to the next INSERT statement.

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