Skip to content

Execute_many optimisation for inserts? #123

Closed
@simplesteph

Description

@simplesteph

It seems that execute_many would run an INSERT as many times as I have rows to insert. Is there an optimisation available to perform a multi row inserts as part of one INSERT statement?

insert into table values (1,1), (1,2), (1,3), (2,1);

Or would I have to manually create that statement with the desired batch size? Basically a helper would be amazing, ideally for better insert performance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions