Imagine having thousands of articles in a database, AFAIK using
collect to get them all and then getting a random subsection would not
be the best solution as the process would eat up a lot of memory.

What I'm basically looking for is the most efficient PicoLisp
equivalent to the following SQL:

SELECT * FROM articles ORDER BY RAND() LIMIT 50

My er looks like this for the articles:

(class +Article +Entity)
(rel aid       (+Key +Number))
(rel title     (+Idx +String))
(rel htmlUrl   (+Key +String))
(rel body      (+String))
(rel pubDate   (+String))

/Henrik
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to