Skip to content

c/driver/postgresql: Postgres bulk insert is slow #1037

@judahrand

Description

@judahrand

Currently the Postgres bulk inserter uses a standard INSERT INTO ... VALUES query to insert data. This is slow compared to COPY data FROM STDIN WITH (FORMAT BINARY).

Given that we already use COPY to fetch data fast it would make sense to me to use the same trick in reverse to insert data fast. And example project which does something similar is https://github.com/adriangb/pgpq.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions