On Wed, Sep 11, 2013 at 09:51:27PM +0700, Henrik Sarvell wrote: > What is the most efficient way of getting all objects whose ids (+Key > +Number) are in a list? > > Simply looping db calls or?
Yes, something like (mapcar '((Id) (db 'id '+Cls Id)) (1 3 7 9)) There is a little overhead in calling 'db' (which doesn't really matter, I believe), but in case of '+Key's you can also directly call the lower-level 'fetch' function which directly accesses the index tree: (mapcar '((Id) (fetch '(id . +Cls) Id)) (1 2 3)) ♪♫ Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe