as per http://kamailio.org/docs/modules/3.3.x/modules_k/dialog.html#idp148408 a db_fetch_row of 0 should not load data from the DB At all.
I think doing this in mod_init makes the most sense, rather than further down in select_entire_dialog_table or similar. The docs say setting to 0 will only restrict the initial load on startup, not any subsequent loads. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/295
-- Commit Summary --
* Fix dialog module to not load DB when db_fetch_rows == 0
-- File Changes --
M modules/dialog/dialog.c (10)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/295.patch https://github.com/kamailio/kamailio/pull/295.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/295