mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Setting BatchSize to a reasonable default value on the Content Recipe Execution Step.
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user