Home | Previous Page | Next Page   Setting Up and Managing Enterprise Replication > Defining Replication Servers, Replicates, Participants, and Replicate Sets > Defining Replicates >

Replicating Only Changed Columns

By default, Enterprise Replication replicates the entire row, even if only one column changed. (For more information on how Enterprise Replication evaluates data for replication, see Evaluating Data for Replication.)

You can change the default behavior to replicate only the columns that changed. To replicate only changed columns, include the --fullrow n option in the replicate definition.

Tip:
Enterprise Replication always sends the primary key column, even if you specify to replicate only changed columns.

Replicating only the columns that changed has the following advantages:

If Enterprise Replication replicates an entire row from the source, and the corresponding row does not exist on the target, Enterprise Replication applies the update as an insert, also known as an upsert, on the target. By replicating the entire row, Enterprise Replication corrects any errors during replication. If any errors occur in an update of the target database server (for example, a large object is deleted before Enterprise Replication can send the data), the next update from the source database server (a complete row image) corrects the data on the target server.

Replicating only the columns that changed has the following disadvantages:

Enterprise Replication logs bitmap information about the updated columns in the logical-log file. For more information, see the CDR record type in the logical-logs chapter in the IBM Informix Administrator's Reference.

For more information on the --fullrow option, see Special Options.

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