Using database replication filters

The Subscription Resolution Engine (SRE) evaluates table and function subscription rows. The Database Subscription Resolution Engine (DSRE) evaluates database objects—except transactions. When a database replication definition causes a transaction to be sent to the replicate Replication Server, the DIST evaluates the transaction before other database objects are evaluated by the DSRE and before transaction rows are evaluated by the SRE. Thus, Replication Server filters out transactions even if they contain data that satisfies a database subscription or a table or function subscription.

If a database subscription and a table or function subscription coexist for the same table or function, the table or function subscription takes precedence. In this instance, the DIST does not pass the replicated table or function to the DSRE for evaluation; the DIST passes it to the SRE.

Figure 12-1: Evaluation of database replication filters

Figure 12-1 shows the evaluation of database replication filters. If the replication path is a table or function subscription, D I S T passes replicated table or function to the Subscription Resolution Engine (S R E). Otherwise, it passes replicated table or function to Database Subscription Resolution Engine (D S R E).