diff --git a/AsPartitionProcessing/AsPartitionProcessing/ModelConfiguration.cs b/AsPartitionProcessing/AsPartitionProcessing/ModelConfiguration.cs
index 32d9129..f7b156e 100644
--- a/AsPartitionProcessing/AsPartitionProcessing/ModelConfiguration.cs
+++ b/AsPartitionProcessing/AsPartitionProcessing/ModelConfiguration.cs
@@ -49,7 +49,7 @@ namespace AsPartitionProcessing
public string Password { get; set; }
///
- /// When initialSetUp=false, sets the maximum number of threads on which to run processing commands in parallel. -1 will not set the value.
+ /// Sets the maximum number of threads on which to run processing commands in parallel. -1 will not set the value.
///
public int MaxParallelism { get; set; }
@@ -84,7 +84,7 @@ namespace AsPartitionProcessing
/// Should always set to true for SSAS implementations that will run under the current process account. For Azure AS, normally set to false.
/// Only applies when integratedAuth=false. Used for Azure AD UPNs to connect to Azure AS.
/// Only applies when integratedAuth=false. Used for Azure AD UPNs to connect to Azure AS.
- /// When initialSetUp=false, sets the maximum number of threads on which to run processing commands in parallel. -1 will not set the value.
+ /// Sets the maximum number of threads on which to run processing commands in parallel. -1 will not set the value.
/// Set to override of CommitTimeout server property value for the connection. -1 will not override; the server value will be used.
/// Collection of partitioned tables containing configuration information.
public ModelConfiguration(
diff --git a/AsPartitionProcessing/AsPartitionProcessing/PartitionProcessor.cs b/AsPartitionProcessing/AsPartitionProcessing/PartitionProcessor.cs
index 9042884..bdd03b7 100644
--- a/AsPartitionProcessing/AsPartitionProcessing/PartitionProcessor.cs
+++ b/AsPartitionProcessing/AsPartitionProcessing/PartitionProcessor.cs
@@ -168,13 +168,6 @@ namespace AsPartitionProcessing
templatePartition.RequestRefresh(RefreshType.DataOnly);
}
}
-
- //If initital setup, process tables sequentially
- if (_modelConfiguration.InitialSetUp)
- {
- LogMessage($"Save changes for table {tableConfiguration.AnalysisServicesTable} ...", true);
- database.Model.SaveChanges();
- }
}
//Commit the data changes, and bring model back online if necessary
@@ -184,18 +177,15 @@ namespace AsPartitionProcessing
LogMessage(new String('-', 16), false);
//Save changes setting MaxParallelism if necessary
- if (!_modelConfiguration.InitialSetUp)
+ if (_modelConfiguration.MaxParallelism == -1)
{
- if (_modelConfiguration.MaxParallelism == -1)
- {
- LogMessage("Save changes ...", true);
- database.Model.SaveChanges();
- }
- else
- {
- LogMessage($"Save changes with MaxParallelism={Convert.ToString(_modelConfiguration.MaxParallelism)}...", true);
- database.Model.SaveChanges(new SaveOptions() { MaxParallelism = _modelConfiguration.MaxParallelism });
- }
+ LogMessage("Save changes ...", true);
+ database.Model.SaveChanges();
+ }
+ else
+ {
+ LogMessage($"Save changes with MaxParallelism={Convert.ToString(_modelConfiguration.MaxParallelism)}...", true);
+ database.Model.SaveChanges(new SaveOptions() { MaxParallelism = _modelConfiguration.MaxParallelism });
}
//Perform recalc if necessary