Using the APPEND Optimizer Hint v12
By default, Advanced Server will add new data into the first available free-space in a table (vacated by vacuumed records). Include the APPEND
directive after an INSERT
or SELECT
command to instruct the server to bypass mid-table free space, and affix new rows to the end of the table. This optimizer hint can be particularly useful when bulk loading data.
The syntax is:
For example, the following command, compatible with Oracle databases, instructs the server to append the data in the INSERT
statement to the end of the sales
table:
Note that Advanced Server supports the APPEND
hint when adding multiple rows in a single INSERT
statement:
The APPEND
hint can also be included in the SELECT
clause of an INSERT INTO
statement: