external DB? like mysql?<br><br><br><div class="gmail_quote">2009/1/24 <span dir="ltr"><<a href="mailto:cbbs70a@hotmail.com">cbbs70a@hotmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
All;<br> I have a question regarding the Astdb. When reading more than a few values, it can
take quite a while to grab several
values in the astdb using say, asterisk -rx "database show" >
output.txt and work with that and then set a new value such as asterisk
-rx "database put $key $value". The whole process can take over 1
second for EACH ENTRY which adds up for more than a few keys.<br><br>
What I do now is dump the entire Astdb using "db_dump185" in about
0.003 ms, and then read the entire Astdb output as a hash and then
manipulate key, value pairs that way. The entire process will take me
less than 0.020 ms total.<br>
My problem is this. I am unable to find a corresponding way of doing
this in reverse. That is, I do not have a corresponding way to write
the new values back to the Astdb. The most obvious way of writing to
the Astdb is by using PERL's DB_File. I tried compiling DB_File using
the Berkeley 1.85 lib and header to no avail. I've had no luck with
db_load either. Any insight at all to write many values to the Astdb quickly would be greatly appreciated.<br>Regards;<br><br><br><hr>Windows Live™: E-mail. Chat. Share. Get more ways to connect. <a href="http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009" target="_blank">Check it out.</a></div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> (\__/) <br>(='.'=)This is Bunny. Copy and paste bunny into your <br>
(")_(")signature to help him gain world domination. <br><br>