This commit is contained in:
2020-05-24 23:55:22 +00:00
parent e385ef5012
commit 731b18cc69
4 changed files with 37 additions and 7 deletions

View File

@@ -85,7 +85,22 @@ namespace AyaNova.Util
//Erase all the data except for the license, schema and the manager user
await DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
apiServerState.SetOpsOnly("Seeding database with sample data");
//TEST METRICS SIZE
using (var cct = ServiceProviderProvider.DBContext)
{
var TestCount = 365 * 24 * 60;//525600 minutes in a year
for (int i = 0; i < TestCount; i++)
{
cct.MetricCPU.Add(new MetricCPU() { v = 33.33333 });
}
cct.SaveChanges();
}
//WIDGET sample form customization
{