mnemosyne:string_to_handle pb !
s. n. wight
swight@REDACTED
Wed Dec 13 20:12:11 CET 2000
I agree with Uffe on this for sure - the match_object function is
beautiful and performs 90% of the query operations I need to do!
But I had a very similar looking problem in September and Dan Gudmundsson
sent out a simple patch which fixes this problem (YMMV!):
http://www.erlang.org/ml-archive/erlang-questions/200009/msg00116.html
Otherwise, heed Ulf's sound advice, below!
-steve
On Wed, Dec 13, 2000 at 12:18:58PM +0100, Ulf Wiger wrote:
>
> I cannot help you with the exact problem, except to say that
> the following construct is _much_ more efficient:
>
> mnesia_transaction(
> fun() ->
> P = mnesia:table_info(jabber_personne, wild_pattern),
> mnesia:match_object(P#jabber_personne{age = 22})
> end).
>
> Basically, mnemosyne should be avoided for all queries, unless
> you really need the cursor support, or you have very complex queries.
>
> /Uffe
>
> On Wed, 13 Dec 2000, Lecomte Jean François wrote:
>
> >Hi,
> >
> >I do need to build a handle query using a string but when i tried to
> >use the mnemosyne string_to_handle it fails !
More information about the erlang-questions
mailing list