<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Not all cachedb backends have implementations that allow you to use
    all modules.   The db api exports specific functions that may not be
    implemented for a given cache db module.  You have found an example
    of one where a module requires a db api function implementation, and
    the cachedb module you are using does not implement it.<br>
    -Eric<br>
    <br>
    <div class="moz-cite-prefix">On 07/14/2016 11:31 AM, feroze waris
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEUCUnnMeLtbY44QSAE_ZxT4tDZWRRrDLKDnJFbpowW7HDG5gA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi Daniel and Benajmin,<br>
                <br>
              </div>
              Thank you for reply and sharing link of mongodb basics.
              Yes there is a performance issue. I want that opensips
              writes and get information of dialog, location, subscriber
              etc from cachedb(mongodb). For this task i came across
              with the module named <b>db_cachedb </b>( <a
                moz-do-not-send="true"
                href="http://www.opensips.org/html/docs/modules/2.1.x/db_cachedb.html"><a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.1.x/db_cachedb.html">http://www.opensips.org/html/docs/modules/2.1.x/db_cachedb.html</a></a>
              ). <b><br>
                <br>
              </b></div>
             According to documentation what this module do is " <b>The
              db_cachedb module will expose the same front db api,
              however it will run on top of a NoSQL back-end, emulating
              the SQL calls to the back-end specific queries</b>."<br>
            <br>
          </div>
          I implemented this module and also created collections in
          mongodb according to mysql tables list. Now when i start
          opensips it gives me following error <br>
          <br>
          Jul 14 17:27:45 localhost [23610]: ERROR:core:db_check_api:
          module db_mongodb does not export db_use_table function<br>
          Jul 14 17:27:45 localhost [23610]: ERROR:uri:mod_init: No
          database module found<br>
          Jul 14 17:27:45 localhost [23610]: ERROR:core:init_mod: failed
          to initialize module uri<br>
          Jul 14 17:27:45 localhost [23610]: ERROR:core:main: error
          while initializing modules<br>
          <br>
        </div>
        my opensips version is 2.1.3<br>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Jul 13, 2016 at 6:52 PM,
          Benjamin Cropley <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:benjamin.cropley@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:benjamin.cropley@gmail.com">benjamin.cropley@gmail.com</a></a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">You don't have to explicitly define a schema
              when you insert a document into MongoDB.
              <div><br>
              </div>
              <div>For example, you could create a MongoDB database, and
                then immediately do an insert into an insert into a
                collection without even creating it or a 'schema'.</div>
              <div><br>
              </div>
              <div>Maybe you should do some reading about MongoDB and
                NoSQL in general, as a basic understanding should have
                answered that question :)</div>
              <div><br>
              </div>
              <div><a moz-do-not-send="true"
                  href="https://docs.mongodb.com/manual/faq/fundamentals/"
                  target="_blank">https://docs.mongodb.com/manual/faq/fundamentals/</a><br>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">
                <div>
                  <div class="h5">On Wed, Jul 13, 2016 at 2:44 PM,
                    feroze waris <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:feroze.chaudhry@gmail.com"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:feroze.chaudhry@gmail.com">feroze.chaudhry@gmail.com</a></a>&gt;</span>
                    wrote:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div dir="ltr">
                        <div>
                          <div>
                            <div>Hi,<br>
                              <br>
                            </div>
                            Can anyone tell me how to move opensips DB
                            from SQL to NoSQL. I have seen a module name
                            db_cachedb which has a support for mongodb
                            but how to move mysql schema to mongodb
                            schema. <br>
                            <br>
                          </div>
                          Regards <br>
                        </div>
                        <span><font color="#888888">Feroze<br>
                          </font></span></div>
                      <br>
                    </div>
                  </div>
                  <span class="">_______________________________________________<br>
                    Users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Users@lists.opensips.org"
                      target="_blank">Users@lists.opensips.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                      rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                    <br>
                  </span></blockquote>
              </div>
              <span class="HOEnZb"><font color="#888888"><br>
                  <br clear="all">
                  <div><br>
                  </div>
                  -- <br>
                  <div data-smartmail="gmail_signature">
                    <div dir="ltr">All the best,
                      <div>Ben Cropley</div>
                      <div>07539 366 905</div>
                    </div>
                  </div>
                </font></span></div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </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>