mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user