external help file | Module Name | online version | schema |
---|---|---|---|
PowerShellKusto.dll-Help.xml |
PowerShellKusto |
2.0.0 |
Sets the ingestion batching policy on a Kusto Database or Table.
Set-KustoBatchingPolicy
[[-Table] <String>]
[[-Database] <String>]
[-MaximumBatchingTimeSpan <TimeSpan>]
[-MaximumNumberOfItems <Int32>]
[-MaximumRawDataSizeMB <Int32>]
[-OutputType <OutputType>]
[-RequestProperties <ClientRequestProperties>]
[<CommonParameters>]
The Set-KustoBatchingPolicy
cmdlet is used to alter the batching policy of a Database or specific Table on an Azure Data Explorer Cluster.
See Ingestion batching policy for more details.
$params = @{
MaximumBatchingTimeSpan = '00:00:30'
MaximumNumberOfItems = 500
MaximumRawDataSizeMB = 1024
}
Set-KustoBatchingPolicy -Table myTable -Database myDb @params
This example alters the ingestion batching policy of myTable
on myDb
Database.
$params = @{
MaximumBatchingTimeSpan = '00:00:30'
MaximumNumberOfItems = 500
MaximumRawDataSizeMB = 1024
}
Set-KustoBatchingPolicy @params
Tip
- When
-Table
isn't specified, the ingestion batching policy is altered at Database level. - In this example, the database is specified by the database used when you called
Connect-Kusto
.
Specifies the name of the Database for which to alter the ingestion batching policy.
Note
If not supplied, the Database used will be the one specified when you called Connect-Kusto
.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The time limit after which a batch is sealed. The default value is 5 minutes.
Type: TimeSpan
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: [timespan] '00:05:00'
Accept pipeline input: False
Accept wildcard characters: False
The number of files defined as the limit after which a batch is sealed. This setting should only be set in scenarios where you can control the data units, such as blobs or files. In message-based scenarios, such as Event Hubs, IoT Hub, and Azure Cosmos DB change feed, consider using the Time and Size settings to control batching. The default value is 500 items.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 500
Accept pipeline input: False
Accept wildcard characters: False
The size limit after which a batch is sealed. The default value is 1024 MB.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 1024
Accept pipeline input: False
Accept wildcard characters: False
Determines the output type this cmdlet will produce. The default value is PSObject
.
Type: OutputType
Parameter Sets: (All)
Aliases:
Accepted values: PSObject, Json, Csv, DataTable, Html
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Request properties control how a query or command executes and returns results. If no ClientRequestProperties
object is supplied this cmdlet will use default properties.
Note
You can create new request properties using New-KustoClientRequestProperties.
Type: ClientRequestProperties
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the Table for which to alter the ingestion batching policy.
Note
This parameter is optional. If not specified, the ingestion batching policy is altered on Database level.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters. For more information, see about_CommonParameters.
.alter database policy ingestionbatching command
Create a table's ingestion batching policy with the table batching policy wizard