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.
In this article
Applies to: ✅ Azure Data Explorer
Use this command to change the table sharding policy. Use the sharding policy to manage data sharding for databases and tables.
The sharding policy defines if and how Extents (data shards) should be sealed. When a database is created, it contains the default data sharding policy. This policy is inherited by all tables created in the database (unless the policy is explicitly overridden at the table level).
You must have at least Table Admin permissions to run this command.
.alter
table
TableName policy
sharding
PolicyObject
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
TableName | string |
✔️ | The name of the table. |
PolicyObject | string |
✔️ | A serialized policy object. For more information, see sharding policy. |
Returns a JSON representation of the policy.
The following command returns the updated extents sharding policy for the table.
.alter table MyTable policy sharding
```
{
"ShardEngineMaxRowCount" : 750000,
"ShardEngineMaxExtentSizeInMb" : 1024,
"ShardEngineMaxOriginalSizeInMb" : 2048
}
```