[erlang-questions] Selecting X number of items from Mnesia

Dave Bryson daveb@REDACTED
Fri Feb 8 01:40:19 CET 2008


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!

Dave



More information about the erlang-questions mailing list