Ref T308, loading JSON from DB optimizations

- info about time consumed for parsing (so we can benchmark)
- using the "optimized" YYYYmmdd parsing
This commit is contained in:
Klaus Basan
2018-08-21 15:55:14 +02:00
parent 183280fa75
commit 12f6e006ab
7 changed files with 76 additions and 43 deletions

View File

@@ -281,8 +281,11 @@ namespace BlackCore
}
else
{
// normally read from special view which already filters incomplete
// normally read from special DB view which already filters incomplete
QTime time;
time.start();
codes = CAircraftIcaoCodeList::fromDatabaseJson(res, true, &inconsistent);
this->logParseMessage("aircraft ICAO", codes.size(), time.elapsed(), res);
}
if (!inconsistent.isEmpty())
@@ -332,8 +335,11 @@ namespace BlackCore
}
else
{
// normally read from special view which already filters incomplete
// normally read from special DB view which already filters incomplete
QTime time;
time.start();
codes = CAirlineIcaoCodeList::fromDatabaseJson(res, true, &inconsistent);
this->logParseMessage("airline ICAO", codes.size(), time.elapsed(), res);
}
if (!inconsistent.isEmpty())
@@ -380,8 +386,11 @@ namespace BlackCore
}
else
{
// normally read from special view which already filters incomplete
// normally read from special DB view which already filters incomplete
QTime time;
time.start();
countries = CCountryList::fromDatabaseJson(res);
this->logParseMessage("countries", countries.size(), time.elapsed(), res);
}
if (!this->doWorkCheck()) { return; }