<p>Long time ago I have added in the configuration:<br>
latency_limit_db=500</p>
<p>After the upgrade from version 5.1.7 to version 5.1.8, kamailio started printing a lot of log lines related to db slow query:<br>
 [db_query.c:68]: db_do_submit_query(): alert - query execution too long [1136 us]<br>
 [db_query.c:68]: db_do_submit_query(): alert - query execution too long [914 us]<br>
 [db_query.c:68]: db_do_submit_query(): alert - query execution too long [741 us]<br>
 [db_query.c:68]: db_do_submit_query(): alert - query execution too long [621 us]</p>
<p>It seems that after the upgrade the latency_limit_db parameter configuration changed from milliseconds to microseconds.</p>
<p>Here the commit that probably caused the issue:<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/ce8d36f301d7688255597a67693e47dc14448650/hovercard" href="https://github.com/kamailio/kamailio/commit/ce8d36f301d7688255597a67693e47dc14448650"><tt>ce8d36f</tt></a></p>
<p>If a fix is released, please backport it till 5.1 branch.</p>
<p>Thank you.<br>
Marco</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1956?email_source=notifications&email_token=ABO7UZK7N3P7Z3ZHXFDXE2TPV3GJ3A5CNFSM4HNWK3E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUN2FRQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOPZP3CZCA7FBCOAKTPV3GJ3ANCNFSM4HNWK3EQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZPLQOR654DYBYD7KN3PV3GJ3A5CNFSM4HNWK3E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUN2FRQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1956?email_source=notifications\u0026email_token=ABO7UZK7N3P7Z3ZHXFDXE2TPV3GJ3A5CNFSM4HNWK3E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUN2FRQ",
"url": "https://github.com/kamailio/kamailio/issues/1956?email_source=notifications\u0026email_token=ABO7UZK7N3P7Z3ZHXFDXE2TPV3GJ3A5CNFSM4HNWK3E2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUN2FRQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>