<div dir="ltr">Just in case:<br><div><br></div><div>Kam version - latest nightly deb (5.4.0~dev1+0~20191122005600.1540+buster)</div><div><br></div><div>Redis config:</div><div><br></div><div>loadmodule "db_redis.so"<br></div><div>modparam("db_redis", "keys", "version=entry:table_name")<br></div><div>...</div><div>modparam("dispatcher", "db_url", "redis://X.X.X.X:6379/2")<br></div><div><br></div><div><br></div><div>Thanks!</div><div>Joel.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 22, 2019 at 1:48 PM Joel Serrano <<a href="mailto:joel@textplus.com">joel@textplus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <br><div><br></div><div>I'm trying out redis as db backend, and right now I only have dispatcher records there... Every so often, I do a ds_reload() from within Kam config script, and I see in logs:</div><div><br>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<br><br></div><div>After enabling debug logs:</div><div><br></div><div>Nov 22 21:15:35 test COPS[26661]: DEBUG: db_redis [redis_dbase.c:1761]: db_redis_query(): querying prefix (table) 'dispatcher'<br>Nov 22 21:15:35 test COPS[26661]: DEBUG: db_redis [redis_dbase.c:1811]: db_redis_query(): no columns given to build query keys, falling back to full table scan<br>Nov 22 21:15:35 test COPS[26661]: DEBUG: <core> [db_res.c:119]: db_new_result(): allocate 56 bytes for result set at 0x7f0be4273898<br>Nov 22 21:15:35 test COPS[26661]: DEBUG: <core> [db_res.c:156]: db_allocate_columns(): allocate 40 bytes for result names at 0x7f0be4273938<br>Nov 22 21:15:35 test COPS[26661]: DEBUG: <core> [db_res.c:167]: db_allocate_columns(): allocate 20 bytes for result types at 0x7f0be42739c8<br>Nov 22 21:15:35 test COPS[26661]: WARNING: db_redis [redis_dbase.c:1098]: db_redis_perform_query(): performing full table scan on table 'dispatcher' while performing query<br><br></div><div>Given the msg... "no columns given to build query keys, falling back to full table scan", I assume I'm missing a keys modparam.. but I don't know how to build it, and the docs (to me) seem confusing?</div><div><br></div><div><a href="https://kamailio.org/docs/modules/devel/modules/db_redis.html#db_redis.p.keys" target="_blank">https://kamailio.org/docs/modules/devel/modules/db_redis.html#db_redis.p.keys</a><br></div><div><br></div><div>Can anyone help me understand how to build the keys modparam for dispatcher table? Or if the reason for this is different, what do I need to do to avoid the full table scan and the warning in the log?</div><div><br></div><div>Thanks, </div><div>Joel.</div><div><br></div><div><br></div></div>
</blockquote></div>