Using replication definitions to optimize performance

When you specify that you want to use a replication definition for replicating into a standby database:

Creating a replication definition for replicating into a standby database

To create a replication definition just for replicating into the standby database, use the send standby clause in the create replication definition command. The replication definition’s primary key and replicate minimal columns setting will be used in replicating into the standby database.

Refer to Chapter 3, “Replication Server Commands,” in the Replication Server Reference Manual for detailed information about using create replication definition command.

Specifying a primary key

Replication Server generates a where clause to specify target rows for updates and deletes.

Updating minimal columns

If you create a replication definition for replicating into a standby database, you can take advantage of another replication system performance optimization, the minimal columns setting.

When you use the replicate minimal columns clause, replicated update and delete transactions include only the required columns. Values for unchanged columns can be omitted from update commands. Omitting the unnecessary columns reduces the size of messages delivered through the replication system and requires Adaptive Server to do less work.

If you are not using replication definitions for replicating into the standby, you can still attain this performance benefit.

Minimal column replication occurs automatically if you have no replication definitions for a table or if you have replication definitions for a table but do not use one for replicating into the standby database.

Specifying columns to replicate into the standby database

If you create a replication definition for replicating into a standby database, you can specify which set of columns to replicate:

Refer to Chapter 3, “Replication Server Commands,” in the Replication Server Reference Manual for more information about using the send standby clause with the create replication definition command.

Specifying parameters to replicate into the standby database

If you create a function replication definition, you can specify which set of parameters to replicate:

If a replicated stored procedure has no function replication definition, when the stored procedure is executed, Replication Server replicates all of its parameters from the active database into the standby database. You can create only one function replication definition per replicated stored procedure.

See Chapter 3, “Replication Server Commands,” in the Replication Server Reference Manual for more information about using the send standby clause with the create applied/request function replication definition command.