Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

For databases like Microsoft SQL Server and MySQL, conn:merge{} provides a bulk insert option, which can improve performance when inserting a large number of rows.

The bulk insert feature ignores key column definitions and always performs an INSERT using a bulk insert syntax.

conn:merge{data=T, bulk_insert=true} -- Enables bulk insert 

Bulk insert operations only perform inserts. If you need to update rows as well, you must handle this separately. If the bulk insert encounters a duplicate row based on key columns, an error will occur.

  • No labels