Improve IDO performance

refs #12147
This commit is contained in:
Gunnar Beutner 2016-07-13 14:44:53 +02:00
parent b0e6eb0ca4
commit 1bd235b9fb
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,7 @@ REGISTER_TYPE(IdoMysqlConnection);
REGISTER_STATSFUNCTION(IdoMysqlConnection, &IdoMysqlConnection::StatsFunc);
IdoMysqlConnection::IdoMysqlConnection(void)
: m_QueryQueue(1000000)
: m_QueryQueue(10000000)
{ }
void IdoMysqlConnection::OnConfigLoaded(void)
@ -453,6 +453,11 @@ void IdoMysqlConnection::AsyncQuery(const String& query, const boost::function<v
aq.Query = query;
aq.Callback = callback;
m_AsyncQueries.push_back(aq);
if (m_AsyncQueries.size() > 25000) {
FinishAsyncQueries();
InternalNewTransaction();
}
}
void IdoMysqlConnection::FinishAsyncQueries(void)