[erlang-questions] Selecting X number of items from Mnesia
Fri Feb 8 09:06:18 CET 2008
I'd have to check on how to do it with QLC, but using
mnesia:select(Tab, MatchSpec, NObjs, Lock), you
can quite easily pull the N first objects from an
2008/2/8, Dave Bryson <>:
> I apologize in advance for the newbie question!
> I'm trying to treat an mnesia table as a FIFO queue. What I'd like to
> be able to do is pull X number of items off the head of the list
> returned by a query. There's no conditional values to isolate the
> records - I just want the top X number of records. Is there an
> efficient way to do this with qlc?
> Thanks in advance!
> erlang-questions mailing list
More information about the erlang-questions