/
Bulk Insert on Merge

Bulk Insert on Merge

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, live=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.

 

Related content

Merging Records
Merging Records
More like this
Understanding Databases in Iguana
Understanding Databases in Iguana
More like this
Executing SQL Statements
Executing SQL Statements
More like this
Executing code in Test versus Live
Executing code in Test versus Live
Read with this
Database Schema File (*.vdb)
Database Schema File (*.vdb)
More like this
GIT Pull
GIT Pull
More like this