Benchmark result set read

This commit is contained in:
Alexander A. Klimov 2022-03-29 11:16:59 +02:00
parent e3a29fb072
commit 17ce004abd

View File

@ -581,6 +581,7 @@ void IdoMysqlConnection::FinishAsyncQueries()
Log(LogDebug, "IdoMysqlConnectionDebug")
<< "Actually firing " << count << " async queries";
{
auto started (Utility::GetTime());
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++) {
const IdoAsyncQuery& aq = queries[i];