+1 for Erik <div><br></div><div>and<div>+1 from me :)<br clear="all"><br></div><div><br></div><div>We should be able to do as less DB operations as possible. A couple things are enough to be kept only in the RAM.</div><div>

<br></div><div>In my setup I&#39;m utilizing the memcache and JSON a lot, so the only place where I really need db_url is with the avpops module.<br><i style="color:rgb(102, 102, 102)"><br>Thanks<br>-- Kamen</i><br>
<br><br><div class="gmail_quote">On 14 April 2011 15:56, Erik Dekkers <span dir="ltr">&lt;<a href="mailto:erik.dekkers@wvds.nl">erik.dekkers@wvds.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div bgcolor="white" lang="NL" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">+1 for me</span></p><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:10.0pt;color:windowtext">Van:</span></b><span style="font-size:10.0pt;color:windowtext"> <a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>] <b>Namens </b>Bogdan-Andrei Iancu<br>

<b>Verzonden:</b> donderdag 14 april 2011 13:03<br><b>Aan:</b> <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br><b>Onderwerp:</b> [OpenSIPS-Users] [RFC] Default value of db_url in OpenSIPS</span></p>

</div></div><div><div></div><div class="h5"><p class="MsoNormal"> </p><p class="MsoNormal">Hi all,<br><br>Following some discussions on the value of db_url, we end up with the idea of chancing the way of definition the db_url in opensips.<br>

<br>The problem with the current approach (having builtin - hidden- default values) is confusing as, if you do no explicitly set a db_url, the modules will try do connect to the default db_url, without you even knowing that.<br>

<br>So the idea is to remove the builtin default value and to have a new global parameter in opensips cfg to define the default value for db_urls.<br>This will allow:<br>    - to have single default db_url for simple default scripts (as we have now)<br>

    - to see (no mote hidden) the default value for db_url in your cfg<br>    - to change the default db_url without re-compilling<br>    - still be able to individually change the db_urls for each module...<br><br>Already there are three +votes for this, but I would like to see other opinions on that....pro or against :)<br>

<br>Regards,<br>Bogdan<br><br><br></p><div><p class="MsoNormal">On Wed, Apr 13, 2011 at 3:22 PM, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt; wrote:</p><div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">

<div><div><div><p class="MsoNormal">Or maybe, to make everyone happy, to have a global cfg parameter for defining a default db_url. This will be used to populate the db_urls from the module.</p></div></div><p class="MsoNormal">

<br>So, the default value will be explicitly set in the opensips cfg -&gt; no way to miss it, also easy to roll out a simple default cfg.</p></div></blockquote></div></div><p class="MsoNormal"><br><br></p><pre>-- </pre><pre>

Bogdan-Andrei Iancu</pre><pre>OpenSIPS eBootcamp - 2nd of May 2011</pre><pre>OpenSIPS solutions and &quot;know-how&quot;</pre></div></div></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>