Database: Bulk insert rows

Insert multiple rows into a table in batches.

Help Centre › Building Processes

Insert multiple rows into a table in batches.

Add it to a process

In the process designer, open the Add step tab. Find Bulk insert rows under Database › Bulk & Import/Export, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
Rows (JSON array of dictionaries)YesThe data variable containing the rows to insert
VariableYesName of the variable where the result will be stored Default: inserted_rows.
Connection nameYesConnection name
Table nameYesThe database table name
Batch sizeNoThe number of rows to insert per batch Default: 1000.

What it gives back

  • {inserted_rows} – Number of rows inserted

See all Database steps.

Errors

ErrorDescription
Connection not foundNo open connection exists with the specified name
Table not foundThe specified table does not exist in the database
Column mismatchThe dictionary keys do not match the table columns

Tips

  • Adjust batch_size to balance memory usage and performance – smaller batches use less memory, larger batches are faster
  • The keys in the first dictionary define the column mapping for all rows
  • Use db-list-columns to verify column names before inserting

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.