Model.ApplyRefreshPolicies Method

Definition

Overloads

ApplyRefreshPolicies(Boolean, Boolean, Int32)

Adjusting the partitioning scheme of the incremental-refresh tables in the model, determined by the refresh-policy that is associated with them when the effective date that is used is based on the current time.

ApplyRefreshPolicies(DateTime, Boolean, Boolean, Int32)

Adjusting the partitioning scheme of the incremental-refresh tables in the model, determined by the refresh-policy that is associated with them and the specified effective date.

ApplyRefreshPolicies(Boolean, Boolean, Int32)

Adjusting the partitioning scheme of the incremental-refresh tables in the model, determined by the refresh-policy that is associated with them when the effective date that is used is based on the current time.

public System.Collections.Generic.IReadOnlyList<Microsoft.AnalysisServices.Tabular.ModelOperationResult> ApplyRefreshPolicies (bool refresh = true, bool refreshNonPolicyTables = true, int maxParallelism = 0);
member this.ApplyRefreshPolicies : bool * bool * int -> System.Collections.Generic.IReadOnlyList<Microsoft.AnalysisServices.Tabular.ModelOperationResult>
Public Function ApplyRefreshPolicies (Optional refresh As Boolean = true, Optional refreshNonPolicyTables As Boolean = true, Optional maxParallelism As Integer = 0) As IReadOnlyList(Of ModelOperationResult)

Parameters

refresh
Boolean

An indication if partitions of incremental-refresh tables in the model should be refreshed or not; the default behavior is to do the refresh.

refreshNonPolicyTables
Boolean

An indication if regular tables in the model should be refreshed or not; the default behavior is to do the refresh.

maxParallelism
Int32

The degree of parallelism during the refresh execution.

Returns

The results of the operations that were executed in the procedure.

Remarks

  • The execution flow of ApplyRefreshPolicies is the same as the flow that is triggered by a call to RequestRefresh, followed by a call to SaveChanges.
  • The execution flow includes:
    • Calculating the expected partitioning scheme based on the effective date.
    • Comparing the expected partitioning scheme to the existing set of partitions and issue the needed changes to move to the expected scheme [dropping, creating, and merging partitions as needed].
    • Refresh the newly created partitions as well as the existing partitions in the incremental window.
  • The only difference between the ApplyRefreshPolicies and the combination of RequestRefresh + SaveChanges is ApplyRefreshPolicies enables advanced options that are not available otherwise.
  • It is recommended to use ApplyRefreshPolicies when you want to use a single API call, especially when used with advanced options.
  • It is recommended to use the combination of RequestRefresh + SaveChanges when you want to combine the operation with additional authoring calls in the model before the call to SaveChanges.

Applies to

ApplyRefreshPolicies(DateTime, Boolean, Boolean, Int32)

Adjusting the partitioning scheme of the incremental-refresh tables in the model, determined by the refresh-policy that is associated with them and the specified effective date.

public System.Collections.Generic.IReadOnlyList<Microsoft.AnalysisServices.Tabular.ModelOperationResult> ApplyRefreshPolicies (DateTime effectiveDate, bool refresh = true, bool refreshNonPolicyTables = true, int maxParallelism = 0);
member this.ApplyRefreshPolicies : DateTime * bool * bool * int -> System.Collections.Generic.IReadOnlyList<Microsoft.AnalysisServices.Tabular.ModelOperationResult>
Public Function ApplyRefreshPolicies (effectiveDate As DateTime, Optional refresh As Boolean = true, Optional refreshNonPolicyTables As Boolean = true, Optional maxParallelism As Integer = 0) As IReadOnlyList(Of ModelOperationResult)

Parameters

effectiveDate
DateTime

The effective date that is used when calculating the partitioning scheme.

refresh
Boolean

An indication if partitions of incremental-refresh tables in the model should be refreshed or not; the default behavior is to do the refresh.

refreshNonPolicyTables
Boolean

An indication if regular tables in the model should be refreshed or not; the default behavior is to do the refresh.

maxParallelism
Int32

The degree of parallelism during the refresh execution.

Returns

The results of the operations that were executed in the procedure.

Remarks

  • The execution flow of ApplyRefreshPolicies is the same as the flow that is triggered by a call to RequestRefresh, followed by a call to SaveChanges.
  • The execution flow includes:
    • Calculating the expected partitioning scheme based on the effective date.
    • Comparing the expected partitioning scheme to the existing set of partitions and issue the needed changes to move to the expected scheme [dropping, creating, and merging partitions as needed].
    • Refresh the newly created partitions as well as the existing partitions in the incremental window.
  • The only difference between the ApplyRefreshPolicies and the combination of RequestRefresh + SaveChanges is ApplyRefreshPolicies enables advanced options that are not available otherwise.
  • It is recommended to use ApplyRefreshPolicies when you want to use a single API call, especially with advanced options.
  • It is recommended to use the combination of RequestRefresh + SaveChanges when you want to combine the operation with additional authoring calls in the model before the call to SaveChanges.

Applies to