Setting BatchSize to a reasonable default value on the Content Recipe Execution Step.

This commit is contained in:
Sipke Schoorstra
2015-07-19 23:13:42 +01:00
parent 32a5082405
commit c59a056524

View File

@@ -17,6 +17,7 @@ namespace Orchard.Recipes.Providers.Executors {
public ContentStep(IOrchardServices orchardServices, ITransactionManager transactionManager) { public ContentStep(IOrchardServices orchardServices, ITransactionManager transactionManager) {
_orchardServices = orchardServices; _orchardServices = orchardServices;
_transactionManager = transactionManager; _transactionManager = transactionManager;
BatchSize = 64;
} }
public override string Name { public override string Name {
@@ -42,7 +43,9 @@ namespace Orchard.Recipes.Providers.Executors {
} }
public override dynamic UpdateEditor(dynamic shapeFactory, IUpdateModel updater) { public override dynamic UpdateEditor(dynamic shapeFactory, IUpdateModel updater) {
var viewModel = new ContentExecutionStepViewModel(); var viewModel = new ContentExecutionStepViewModel {
BatchSize = BatchSize
};
if (updater != null) { if (updater != null) {
if (updater.TryUpdateModel(viewModel, Prefix, null, null)) { if (updater.TryUpdateModel(viewModel, Prefix, null, null)) {