Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 4.18 KB

sp-change-feed-configure-parameters.md

File metadata and controls

87 lines (63 loc) · 4.18 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
sys.sp_change_feed_configure_parameters (Transact-SQL)
The sys.sp_change_feed_configure_parameters system stored procedure is used to increase the batch size with higher transactions.
WilliamDAssafMSFT
wiassaf
imotiwala
06/03/2024
fabric
system-objects
reference
sys.sp_change_feed_configure_parameters_TSQL
sys.sp_change_feed_configure_parameters
sp_change_feed_configure_parameters_TSQL
sp_change_feed_configure_parameters
sp_change_feed_configure_parameters
TSQL
>=sql-server-ver16 || =azuresqldb-current || =fabric || =azure-sqldw-latest

sys.sp_change_feed_configure_parameters (Transact-SQL)

[!INCLUDE sqlserver2022-asdb-asa-fabric]

Used to reduce latency by decreasing change batch size with @maxtrans, or to reduce the cost by increasing the batch size. As the batch size increases, less IO operation will be performed.

This system stored procedure is used to fine tune the operational performance for:

Syntax

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

sys.sp_change_feed_configure_parameters
    [ [ @maxtrans = ] max_trans ]
    [ , [ @pollinterval = ] polling_interval ]
[ ; ]

Arguments

[ @maxtrans = ] max_trans

Data type is int. Indicates the maximum number of transactions to process in each scan cycle.

  • For Azure Synapse Link, the default value if not specified is 10000. If specified, the value must be a positive integer.
  • For Fabric mirroring, this value is dynamically determined and automatically set.

[ @pollinterval = ] polling_interval

Data type is int. Describes the frequency that the log is scanned for any new changes, in seconds.

  • For Azure Synapse Link, the default interval if not specified is 5 seconds. The value must be 5 or larger.
  • For Fabric mirroring, this value is dynamically determined and automatically set.

Returns

0 (success) or 1 (failure).

Permissions

A user with CONTROL database permissions, db_owner database role membership, or sysadmin server role membership can execute this procedure.

Related content

For Microsoft Fabric mirrored databases:

For Azure Synapse Link: