<p>as per <a href="http://kamailio.org/docs/modules/3.3.x/modules_k/dialog.html#idp148408">http://kamailio.org/docs/modules/3.3.x/modules_k/dialog.html#idp148408</a> a db_fetch_row of 0 should not load data from the DB At all.</p>

<p>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.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/295'>https://github.com/kamailio/kamailio/pull/295</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Fix dialog module to not load DB when db_fetch_rows == 0</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/295/files#diff-0">modules/dialog/dialog.c</a>
    (10)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/295.patch'>https://github.com/kamailio/kamailio/pull/295.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/295.diff'>https://github.com/kamailio/kamailio/pull/295.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/295">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZYSnRFZBGe4F7OJsnbG37nsHVQnWks5oqlvCgaJpZM4FwsMv.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/295"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>