<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi Nash,<br>
        <br>
        It is somewhere in the middle :). Of course the DB ops will
        bring some penalties to the performance, so you need to take
        care and tune your DB for the best performance (not to drag down
        opensips). With db ops is very common in OpenSIPS scripts, so
        you do not do anything crazy or stupid there.<br>
        <br>
        Of course, you should look into optimizing the DB ops you use:<br>
            - DB auth - use caching at script level (see
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Tutorials-MemoryCaching">http://www.opensips.org/Documentation/Tutorials-MemoryCaching</a>)<br>
            - ACC - consider using db_flatstore to avoid writing into a
        real DB<br>
            - dialog - if not really a must use db modes 2 or 3
        (<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id294001">http://www.opensips.org/html/docs/modules/1.11.x/dialog.html#id294001</a>)<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 09.01.2015 20:19, John Nash wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPzWJ4kqWDMt0iRqFcCpNBnavz3-m9y4kzcZkenYq3Tr1Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>I have used opensips for load balancing and some
                  border proxy+ NAT+rtpproxy in past and am quite happy
                  with it. Recently I decided to add DB operations (Auth
                  and accounting, routing and dialog into it so that
                  heavy lifting of VOIP network can be given to
                  opensips. I wanted to send call to PBX only when it is
                  really needed (Like voicemail and conference etc)<br>
                  <br>
                </div>
                But in a long time I saw this article <a
                  moz-do-not-send="true"
                  href="http://www.opensips.org/Documentation/TroubleShooting-FindPerfPb">http://www.opensips.org/Documentation/TroubleShooting-FindPerfPb</a>
                <br>
                <br>
              </div>
              As per this tutorial I think if any DB operation is slow,
              it will hit overall performance (I mean the transactions
              which do not require DB can also be stuck).<br>
              <br>
            </div>
            I know good engineers at openisps have already figured it
            out and working on 2.X version but looks like it will take a
            while so that I can give it a try (As dialog is not in
            current release).<br>
            <br>
          </div>
          With 1.X series + DB auth/acc + dialog should I reconsider my
          approach or there are systems running successfully and I am
          just being paranoid?<br>
          <br>
        </div>
        John<br>
        <div>
          <div>
            <div>
              <div>
                <div><br>
                  <br>
                  <div>
                    <div>
                      <div><br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>