Chris Goffinet
unread,Aug 7, 2008, 7:24:36 PM8/7/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).