This commit is contained in:
@@ -245,7 +245,7 @@ namespace AyaNova.Util
|
||||
|
||||
//METRICS TABLES
|
||||
//CPU
|
||||
await ExecQueryAsync("CREATE TABLE ametriccpu (t timestamp not null, v double precision not null default 0)");
|
||||
await ExecQueryAsync("CREATE TABLE ametricmm (t timestamp not null, v real not null default 0)");
|
||||
|
||||
|
||||
//SEARCH TABLES
|
||||
|
||||
@@ -91,10 +91,11 @@ namespace AyaNova.Util
|
||||
//TEST METRICS SIZE
|
||||
using (var cct = ServiceProviderProvider.DBContext)
|
||||
{
|
||||
Faker Fake = new Faker();
|
||||
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.MetricMM.Add(new MetricMM() { v = Fake.Finance.Random.Float() });
|
||||
}
|
||||
cct.SaveChanges();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user