<p></p>
<p>Hallo. We have difficulties in reproducing this. We have ~500.000 entries in the carrierroute table and it does not take so long for us to load them. The difference is, we are using MariaDB (not Postgres).<br>
Maybe <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/kristina258/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kristina258">@kristina258</a> can tell what DB engine was used in the previous bug report? We are not sure whether it is a DBengine issue or some kind of special table content.<br>
Do you maybe have many entries where where the prob is set 0?</p>
<blockquote>
<p>test-proxy2-bs ~ # <strong>mysql ser</strong><br>
Reading table information for completion of table and column names<br>
You can turn off this feature to get a quicker startup with -A<br>
Welcome to the MariaDB monitor.  Commands end with ; or \g.<br>
Your MariaDB connection id is 1411<br>
Server version: 10.3.27-MariaDB-0+deb10u1-log Debian 10<br>
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.<br>
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br>
MariaDB [ser]> <strong>select count(*) from carrierroute;</strong><br>
+----------+<br>
| count(*) |<br>
+----------+<br>
|   <strong>501684</strong> |<br>
+----------+<br>
1 row in set (0.000 sec)<br>
MariaDB [ser]> Bye<br>
test-proxy2-bs ~ # <strong>time kamcmd cr.reload_routes</strong><br>
real    <strong>0m35.289s</strong><br>
user    0m0.005s<br>
sys     0m0.000s<br>
test-proxy2-bs ~ # <strong>kamailio -v</strong><br>
version: <strong>kamailio 5.3.8</strong> (x86_64/linux)<br>
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id:<br>
compiled with gcc 8.3.0<br>
test-proxy2-bs ~ # <strong>grep -r " and prob>0" /var/log/mysql/mysql.log</strong><br>
210310 11:18:49     27 Query    SELECT * FROM carrierroute WHERE carrier=9101 and domain=5 and prob>0<br>
27 Query        SELECT * FROM carrierroute WHERE carrier=9101 and domain=6 and prob>0<br>
27 Query        SELECT * FROM carrierroute WHERE carrier=9101 and domain=7 and prob>0<br>
27 Query        SELECT * FROM carrierroute WHERE carrier=9101 and domain=0 and prob>0<br>
27 Query        SELECT * FROM carrierroute WHERE carrier=9101 and domain=1 and prob>0<br>
27 Query        SELECT * FROM carrierroute WHERE carrier=9101 and domain=2 and prob>0</p>
</blockquote>

<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/2653#issuecomment-795223278">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK4NSM5ZFUUXV55DFTTC5DWNANCNFSM4YFJBHFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNR6A2SXETHVVFYZN3TC5DWNA5CNFSM4YFJBHF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF5TCJ3Q.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/2653#issuecomment-795223278",
"url": "https://github.com/kamailio/kamailio/issues/2653#issuecomment-795223278",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>