This commit is contained in:
2018-09-27 22:26:23 +00:00
parent 16e8509913
commit 8e843d526f

View File

@@ -55,6 +55,7 @@ namespace AyaNova.Util
{ {
case SeedLevel.SmallOneManShopTrialDataSet: case SeedLevel.SmallOneManShopTrialDataSet:
{ {
#region GenSmall
//This is for a busy but one man shop with a single office person handling stuff back at the shop //This is for a busy but one man shop with a single office person handling stuff back at the shop
//Generate owner and lead tech //Generate owner and lead tech
@@ -65,10 +66,12 @@ namespace AyaNova.Util
//100 widgets //100 widgets
GenSeedWidget(log, 100); GenSeedWidget(log, 100);
#endregion gensmall
} }
break; break;
case SeedLevel.MediumLocalServiceCompanyTrialDataSet: case SeedLevel.MediumLocalServiceCompanyTrialDataSet:
{ {
#region GenMedium
//This is for a typical AyaNova medium busy shop //This is for a typical AyaNova medium busy shop
//has one location, many techs and full staff for each department //has one location, many techs and full staff for each department
@@ -107,10 +110,12 @@ namespace AyaNova.Util
//500 widgets //500 widgets
GenSeedWidget(log, 500); GenSeedWidget(log, 500);
#endregion genmedium
} }
break; break;
case SeedLevel.LargeCorporateMultiRegionalTrialDataSet: case SeedLevel.LargeCorporateMultiRegionalTrialDataSet:
{ {
#region GenLarge
//this is a large corporation with multiple branches in multiple locations all in the same country //this is a large corporation with multiple branches in multiple locations all in the same country
//Each location has a full staff and corporate head office has an overarching staff member in charge of each location //Each location has a full staff and corporate head office has an overarching staff member in charge of each location
@@ -175,11 +180,13 @@ namespace AyaNova.Util
//PERF //PERF
watch.Stop(); watch.Stop();
log.LogInformation($"5k Widgets seeded in {watch.ElapsedMilliseconds} ms"); log.LogInformation($"5k Widgets seeded in {watch.ElapsedMilliseconds} ms");
#endregion genlarge
} }
break; break;
case SeedLevel.HugeForLoadTest: case SeedLevel.HugeForLoadTest:
{ {
#region GenHuge
//this is the HUGE dataset for load and other testing //this is the HUGE dataset for load and other testing
//It is acceptable for this seeding to take many hours as it would normally be used rarely //It is acceptable for this seeding to take many hours as it would normally be used rarely
@@ -242,6 +249,7 @@ namespace AyaNova.Util
GenSeedWidget(log, 20000); GenSeedWidget(log, 20000);
watch.Stop(); watch.Stop();
log.LogInformation($"20k Widgets seeded in {watch.ElapsedMilliseconds} ms"); log.LogInformation($"20k Widgets seeded in {watch.ElapsedMilliseconds} ms");
#endregion genhuge
} }
break; break;
@@ -408,7 +416,6 @@ namespace AyaNova.Util
throw new System.Exception("Seeder::GenSeedWidget error creating widget\r\n" + Biz.GetErrorsAsString()); throw new System.Exception("Seeder::GenSeedWidget error creating widget\r\n" + Biz.GetErrorsAsString());
} }
} }
} }
}//eoc }//eoc