Stone/BigData

管理员放大10倍,否则太卡了
智能大石头 authored at 2025-01-08 23:36:53
24ddc03
Tree
1 Parent(s) 7c5dd8c
Summary: 2 changed files with 6 additions and 6 deletions.
Modified +4 -4
Modified +2 -2
Modified +4 -4
diff --git a/Big.Data.Web/Areas/Data/Controllers/SalesOrderController.cs b/Big.Data.Web/Areas/Data/Controllers/SalesOrderController.cs
index 3dd9daa..fd030a4 100644
--- a/Big.Data.Web/Areas/Data/Controllers/SalesOrderController.cs
+++ b/Big.Data.Web/Areas/Data/Controllers/SalesOrderController.cs
@@ -40,8 +40,8 @@ public class SalesOrderController : EntityController<SalesOrder>
             var batchSize = XCodeSetting.Current.BatchSize;
             var count = 1_000_000;
 
-            // 管理员放大100倍
-            if (ManageProvider.User.Roles.Any(e => e.IsSystem)) count *= 100;
+            // 管理员放大10倍
+            if (ManageProvider.User.Roles.Any(e => e.IsSystem)) count *= 10;
 
             _buildService.Build(count, batchSize);
         });
@@ -61,8 +61,8 @@ public class SalesOrderController : EntityController<SalesOrder>
             var batchSize = XCodeSetting.Current.BatchSize;
             var count = 1_000_000;
 
-            // 管理员放大100倍
-            if (ManageProvider.User.Roles.Any(e => e.IsSystem)) count *= 100;
+            // 管理员放大10倍
+            if (ManageProvider.User.Roles.Any(e => e.IsSystem)) count *= 10;
 
             _buildService.ActorBuild(count, batchSize);
         });
Modified +2 -2
diff --git a/Big.Data.Web/Program.cs b/Big.Data.Web/Program.cs
index c682db0..143fa98 100644
--- a/Big.Data.Web/Program.cs
+++ b/Big.Data.Web/Program.cs
@@ -8,8 +8,8 @@ using System.Diagnostics;
 // 启用控制台日志,拦截所有异常
 XTrace.UseConsole();
 
-// 提高当前进程优先级,便于生成数据时更快完成
-Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.AboveNormal;
+//// 提高当前进程优先级,便于生成数据时更快完成
+//Process.GetCurrentProcess().PriorityClass = ProcessPriorityClass.AboveNormal;
 
 var builder = WebApplication.CreateBuilder(args);
 var services = builder.Services;