QLC with Mnesiaex

6 views
Skip to first unread message

Chris Goffinet

unread,
Aug 7, 2008, 7:24:36 PM8/7/08
to mnesiaex-discuss
Paul,

Have you tried using QLC with Mnesiaex and Tcerl? Was just trying to
test it out using cursors and keep getting badarg.

F = fun() ->
Pos = #overall.points,
Q = qlc:q([A || A <- mnesia:table(overall),
A#overall.user_id =:= User_id]),
QH = qlc:keysort(Pos,Q,[{order, descending}]),
QC = qlc:cursor(QH),
Res = qlc:next_answers(QC, Limit),
qlc:delete_cursor(QC),
Res
end,
X = mnesia:activity(async_dirty, F).

paul mineiro

unread,
Aug 14, 2008, 4:23:13 PM8/14/08
to mnesiaex-discuss
I haven't tried this myself. It would be interesting to find out
where the badarg is being generated. Perhaps mnesia:table/1 or one of
the qlc functions has special cases for the various standard mnesia
table types.

-- p

Chris Goffinet

unread,
Aug 14, 2008, 4:36:57 PM8/14/08
to mnesiaex-discuss
Anything I can do to help debug for you?
Reply all
Reply to author
Forward
0 new messages