diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 66bf0ffa..53f95ac7 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -115,7 +115,7 @@ namespace AyaNova.Util //Each location has a full staff and corporate head office has an overarching staff member in charge of each location //PERF - log.LogInformation($"Seeding user(s)...."); + log.LogInformation($"Seeding 279 user(s)...."); var watch = new Stopwatch(); watch.Start(); @@ -163,11 +163,10 @@ namespace AyaNova.Util //PERF watch.Stop(); - log.LogInformation($"Users seeded in {watch.ElapsedMilliseconds} ms"); + log.LogInformation($"279 Users seeded in {watch.ElapsedMilliseconds} ms"); //5000 widgets - log.LogInformation($"Seeding 5000 Widgets...."); watch = new Stopwatch(); watch.Start(); @@ -175,7 +174,7 @@ namespace AyaNova.Util //PERF watch.Stop(); - log.LogInformation($"Widgets seeded in {watch.ElapsedMilliseconds} ms"); + log.LogInformation($"5k Widgets seeded in {watch.ElapsedMilliseconds} ms"); } break; @@ -185,7 +184,7 @@ namespace AyaNova.Util //It is acceptable for this seeding to take many hours as it would normally be used rarely //PERF - log.LogInformation($"Seeding user(s)...."); + log.LogInformation($"Seeding 1,410 user(s)...."); var watch = new Stopwatch(); watch.Start(); @@ -210,43 +209,39 @@ namespace AyaNova.Util //limited subcontractors GenSeedUser(log, 40, AuthorizationRoles.SubContractorLimited, UserType.Subcontractor); - //120 sales / generic office people people - GenSeedUser(log, 30, AuthorizationRoles.DispatchLimited | AuthorizationRoles.InventoryLimited, UserType.NonSchedulable); + //sales / generic office people people + GenSeedUser(log, 200, AuthorizationRoles.DispatchLimited | AuthorizationRoles.InventoryLimited, UserType.NonSchedulable); - //5 dispatch manager - GenSeedUser(log, 5, AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryLimited, UserType.NonSchedulable); + //dispatch manager + GenSeedUser(log, 20, AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryLimited, UserType.NonSchedulable); - //5 Inventory manager - GenSeedUser(log, 5, AuthorizationRoles.InventoryFull | AuthorizationRoles.DispatchLimited, UserType.NonSchedulable); + //Inventory manager + GenSeedUser(log, 40, AuthorizationRoles.InventoryFull | AuthorizationRoles.DispatchLimited, UserType.NonSchedulable); - //10 Inventory manager assistants - GenSeedUser(log, 5, AuthorizationRoles.InventoryLimited, UserType.NonSchedulable); + //Inventory manager assistants + GenSeedUser(log, 20, AuthorizationRoles.InventoryLimited, UserType.NonSchedulable); - //5 accountant / bookkeeper - GenSeedUser(log, 5, AuthorizationRoles.AccountingFull | AuthorizationRoles.BizAdminLimited, UserType.NonSchedulable); + //accountant / bookkeeper + GenSeedUser(log, 20, AuthorizationRoles.AccountingFull | AuthorizationRoles.BizAdminLimited, UserType.NonSchedulable); - //100 full on client users - GenSeedUser(log, 20, AuthorizationRoles.ClientFull, UserType.Client); + //full on client users + GenSeedUser(log, 200, AuthorizationRoles.ClientFull, UserType.Client); - //100 limited client users - GenSeedUser(log, 20, AuthorizationRoles.ClientLimited, UserType.Client); + //limited client users + GenSeedUser(log, 50, AuthorizationRoles.ClientLimited, UserType.Client); //PERF watch.Stop(); - log.LogInformation($"Users seeded in {watch.ElapsedMilliseconds} ms"); + log.LogInformation($"1,410 Users seeded in {watch.ElapsedMilliseconds} ms"); //20000 widgets log.LogInformation($"Seeding 20,000 Widgets...."); watch = new Stopwatch(); watch.Start(); - for (int i = 0; i < 800; i++) - { - GenSeedWidget(log, 25); - } - //PERF + GenSeedWidget(log, 20000); watch.Stop(); - log.LogInformation($"Widgets seeded in {watch.ElapsedMilliseconds} ms"); + log.LogInformation($"20k Widgets seeded in {watch.ElapsedMilliseconds} ms"); } break;