Home | Previous Page | Next Page   Appendix B. How SQL Queries Are Executed > When Parallel Processing Occurs >

Parallel Data-Manipulation Statements

DELETE, INSERT, and UPDATE statements first fetch the qualifying rows and then perform the delete, insert, or update.

If the data is not in a single local fragment of a table, the database server fetches the qualifying rows in parallel, with one exception. The database server does not process the first part of a DELETE statement in parallel if the targeted table has a referential constraint that can cascade to a child table.

Parallel Inserts into Temporary or External Tables

The database server inserts data into temporary or external tables in parallel in the following cases:

Parallel Index Builds

For index builds, the database server performs both scans and sorts in parallel. The following operations start index builds:

Parallel execution can occur during index builds when any of the following conditions exist:

If your coservers have multiple CPUs, the optimizer uses one sort thread per CPU virtual processor during index builds.

For more information about index builds, refer to Improving Performance for Index Builds.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]