Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: ✅ Azure Data Explorer
Changes the database's merge policy. The merge policy defines if and how extents (data shards) in the database should get merged.
Permissions
You must have at least Database Admin permissions to run this command.
Syntax
.alter-merge database DatabaseName policy merge ArrayOfPolicyObjects
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| DatabaseName | string |
✔️ | The name of the database for which to alter the merge policy. |
| ArrayOfPolicyObjects | string |
✔️ | A serialized array of one or more JSON policy objects. For more information, see merge policy. |
Example
Change a single property of the policy at database level, retaining all other properties as before:
.alter-merge database database_name policy merge ```
{
"MaxRangeInHours": 24
}```