<br><br><div class="gmail_quote">2009/9/10 Tilghman Lesher <span dir="ltr"><<a href="mailto:tlesher@digium.com">tlesher@digium.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;">
On Tuesday 08 September 2009 16:33:20 Olivier wrote:<br>
> Asterisk database is made of <family><key> records such as:<br>
> fam key1 val1<br>
> fam key2 val2<br>
> ...<br>
> fam key100 val100<br>
><br>
> I'm looking for the smartest way to iterate among different keys associated<br>
> to a given family.<br>
><br>
> One way to do this is to parse "database show fam" response.<br>
> Is there something smarter ?<br>
> Something like ${DBKEYS(fam)} which would evaluate to "key1 key2 ...<br>
> key100".<br>
<br>
I think the smarter way, once you've gotten to this level of complexity, is to<br>
start using a real external database, such as Postgres, configure the ODBC<br>
driver, and use func_odbc to interface to it. </blockquote><div><br>I'm afraid you might be right ...<br>But being used to read and write so easily in database, is an addiction which is hard to leave ...<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
AstDB was never meant to be<br>
such a general purpose database (indeed, queries to it are processed serially,<br>
not in parallel, as in real databases).<br>
<br>
--<br>
Tilghman Lesher<br>
Digium, Inc. | Senior Software Developer<br>
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)<br>
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</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>