mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-25 18:48:50 +02:00
Benchmark result set read
This commit is contained in:
parent
e3a29fb072
commit
17ce004abd
@ -581,6 +581,7 @@ void IdoMysqlConnection::FinishAsyncQueries()
|
|||||||
Log(LogDebug, "IdoMysqlConnectionDebug")
|
Log(LogDebug, "IdoMysqlConnectionDebug")
|
||||||
<< "Actually firing " << count << " async queries";
|
<< "Actually firing " << count << " async queries";
|
||||||
|
|
||||||
|
{
|
||||||
auto started (Utility::GetTime());
|
auto started (Utility::GetTime());
|
||||||
|
|
||||||
if (m_Mysql->query(&m_Connection, query.CStr()) != 0) {
|
if (m_Mysql->query(&m_Connection, query.CStr()) != 0) {
|
||||||
@ -596,6 +597,15 @@ void IdoMysqlConnection::FinishAsyncQueries()
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log(LogDebug, "IdoMysqlConnectionDebug")
|
||||||
|
<< "Took " << (Utility::GetTime() - started) << " seconds";
|
||||||
|
}
|
||||||
|
|
||||||
|
Log(LogDebug, "IdoMysqlConnectionDebug")
|
||||||
|
<< "Reading results of " << count << " async queries";
|
||||||
|
|
||||||
|
auto started (Utility::GetTime());
|
||||||
|
|
||||||
for (std::vector<IdoAsyncQuery>::size_type i = offset; i < offset + count; i++) {
|
for (std::vector<IdoAsyncQuery>::size_type i = offset; i < offset + count; i++) {
|
||||||
const IdoAsyncQuery& aq = queries[i];
|
const IdoAsyncQuery& aq = queries[i];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user