<h1>Description</h1>
<p>Trying to avoid getting this warning:</p>
<p>Nov 22 20:36:35 test COPS[25531]: WARNING: db_redis [redis_dbase.c:1098]: db_redis_perform_query(): performing full table scan on table 'dispatcher' while performing query</p>
<h3>Troubleshooting</h3>
<p>Having:</p>
<pre><code>modparam("db_redis", "keys", "version=entry:table_name")
modparam("db_redis", "keys", "dispatcher=entry:id")
</code></pre>
<p>And debug logs showing the key being found:</p>
<pre><code>
#### Reproduction

<!--
If the issue can be reproduced, describe how it can be done.
-->
zzzzzzzzzz
#### Debugging Data

<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.

  gdb /path/to/kamailio /path/to/corefile
  bt full
  info locals
  list

If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->

</code></pre>
<p>(paste your debugging data here)</p>
<pre><code>
#### Log Messages

<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->

</code></pre>
<p>(paste your log messages here)</p>
<pre><code>
#### SIP Traffic

<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->

</code></pre>
<p>(paste your sip traffic here)</p>
<pre><code>
### Possible Solutions

<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

</code></pre>
<p>(paste your output here)</p>
<pre><code>
* **Operating System**:

<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->

</code></pre>
<p>(paste your output here)</p>
<pre><code></code></pre>

<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/2149?email_source=notifications&email_token=ABO7UZNO453LXLQOSY56DA3QVQ7MBA5CNFSM4JRO7SQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H355ZSQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLINEMVUENTEPZAOADQVQ7MBANCNFSM4JRO7SQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZP4XXIO4MSLETJOT4LQVQ7MBA5CNFSM4JRO7SQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H355ZSQ.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/2149?email_source=notifications\u0026email_token=ABO7UZNO453LXLQOSY56DA3QVQ7MBA5CNFSM4JRO7SQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H355ZSQ",
"url": "https://github.com/kamailio/kamailio/issues/2149?email_source=notifications\u0026email_token=ABO7UZNO453LXLQOSY56DA3QVQ7MBA5CNFSM4JRO7SQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H355ZSQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>