Bulk-insert with ABL
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Bulk-insert is used for creating bulk records by means of a programmatic syntax. The
DataServer client component caches the record(s), and then send it to the Oracle
database once the cache is full. The following statements can be used with
send-sql-statement when you want records to be created in
Bulk-insert mode:
-
("--Bulk-insert Start <n>”): This statement is used to begin the Bulk-insert process, where<n>is optional. CREATE("--Bulk-insert End"): This statement is used to end the Bulk-insert process.
For example:
|
The value after Bulk-insert Start is the number of records
after which records will be created on Oracle Database. In
case, the number of records is not specified, Bulk-insert will fill up a buffer that
ABL Client uses for keeping the records. When the buffer is filled up, records will
be created. In that case, Bulk-insert End will just
write the remaining records in the buffer that haven’t been created.
Batch size is minimum of number you specify on Bulk-insert
Start or the number of records that can be put it in the bulk insert
cache( which is 30k).