A method and apparatus for parallelizing operations that change a database
is provided. A coordinator process receives a statement that requires data
to be written into the database. In response to the statement, the
coordinator process assigns granules of work to multiple processes. Each
of the multiple processes executes the granule of work by writing to the
database a distinct portion of the set of data that is to be added to the
database. The various portions of data are then merged to update the set
of data to be added to the database.