This commit is contained in:
@@ -55,6 +55,7 @@ namespace AyaNova.Util
|
||||
{
|
||||
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
|
||||
|
||||
//Generate owner and lead tech
|
||||
@@ -65,10 +66,12 @@ namespace AyaNova.Util
|
||||
|
||||
//100 widgets
|
||||
GenSeedWidget(log, 100);
|
||||
#endregion gensmall
|
||||
}
|
||||
break;
|
||||
case SeedLevel.MediumLocalServiceCompanyTrialDataSet:
|
||||
{
|
||||
#region GenMedium
|
||||
//This is for a typical AyaNova medium busy shop
|
||||
//has one location, many techs and full staff for each department
|
||||
|
||||
@@ -107,10 +110,12 @@ namespace AyaNova.Util
|
||||
|
||||
//500 widgets
|
||||
GenSeedWidget(log, 500);
|
||||
#endregion genmedium
|
||||
}
|
||||
break;
|
||||
case SeedLevel.LargeCorporateMultiRegionalTrialDataSet:
|
||||
{
|
||||
#region GenLarge
|
||||
//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
|
||||
|
||||
@@ -175,11 +180,13 @@ namespace AyaNova.Util
|
||||
//PERF
|
||||
watch.Stop();
|
||||
log.LogInformation($"5k Widgets seeded in {watch.ElapsedMilliseconds} ms");
|
||||
#endregion genlarge
|
||||
}
|
||||
break;
|
||||
|
||||
case SeedLevel.HugeForLoadTest:
|
||||
{
|
||||
#region GenHuge
|
||||
//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
|
||||
|
||||
@@ -242,6 +249,7 @@ namespace AyaNova.Util
|
||||
GenSeedWidget(log, 20000);
|
||||
watch.Stop();
|
||||
log.LogInformation($"20k Widgets seeded in {watch.ElapsedMilliseconds} ms");
|
||||
#endregion genhuge
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -408,7 +416,6 @@ namespace AyaNova.Util
|
||||
throw new System.Exception("Seeder::GenSeedWidget error creating widget\r\n" + Biz.GetErrorsAsString());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}//eoc
|
||||
|
||||
Reference in New Issue
Block a user