I need to insert large amounts of data into postgresql using multi-row inserts.
I am currently doing this by constructing the sql query using a stringbuilder and appending the values but I was wondering if there is a way to use commands and command parameters instead?
COPY. See the npgsql manual.COPYing to aTEMPORARYorUNLOGGEDtable then doing anINSERT INTO ... SELECTto insert a massaged version of the data into the real target table.