rs_capacity

Description

Helps you estimate stable queue size requirements. Use with the rs_fillcaptable stored procedure.

Syntax

rs_capacity TranDuration, FailDuration, SaveInterval, MatRows

Parameters

TranDuration

The duration, in seconds, of the longest transaction. The default is up to 5 seconds.

FailDuration

The length in time, in minutes, that the queue must retain information during a failure. The default is 60 minutes.

SaveInterval

The length of time, in minutes, that messages should be retained after they have been confirmed as received. The default is 1 minute.

MatRows

The number of rows to be materialized in a subscription. The default is 1000 rows.

Examples

Example 1

For the example scenario described for the rs_fillcaptable stored procedure, use rs_capacity with the following parameters.

rs_capacity
 60,    /* TranDuration maximum 60 seconds */
 360,   /* FailDuration 6 hours */
 10,    /* SaveInterval 10 minutes */
 3500   /* Materialize 3500 rows */

rs_capacity returns an estimate of the queue sizes needed for each queue. It also gives an estimate of the subscription materialization queue size needed, based on the replication definition and the number of rows to materialize.

Usage

See also

rs_fillcaptable