Benefits of Replicated Functions over Normal Replication

Learn the benefits of replicated functions.

Adaptive Server logs a record for each row modified by a Transact-SQL® command. When a single Transact-SQL command modifies multiple rows, Replication Server treats each log record received from the Replication Agent as a separate command in the transaction. For example, to replicate the results of a single update command that modifies 1000 rows in the primary database, Replication Server may execute 1000 update commands in each replicate database.

Commands that modify many rows can affect performance of replicate Adaptive Servers and the replication system. The volume of rows delivered through the replication system may use all available space in stable queues.

If an application updates multiple rows in a primary table, you can use replicated stored procedures to maintain data in destination databases. Because commands in stored procedures can modify multiple rows, using stored procedures allows you to update rows in replicate databases without passing images of the rows through the replication system. Only a single record reflecting stored-procedure execution and its parameters replicates through the system.

You can use SQL statement replication to improve the performance for a single Transact-SQL command which modifies multiple rows. See Replication Server Administration Guide Volume 2 > Performance Tuning > SQL Statement Replication.

In Replication Server, you can enable support for the Adaptive Server deferred name resolution feature.

Related concepts
Manage Replicated Functions
Manage Subscriptions
Deferred Name Resolution