Skip to content

Instantly share code, notes, and snippets.

@smanek
Created January 4, 2010 12:55
Show Gist options
  • Save smanek/268496 to your computer and use it in GitHub Desktop.
Save smanek/268496 to your computer and use it in GitHub Desktop.
(ele:with-transaction ()
(mapcar #'(lambda (oid)
(ele::controller-recreate-instance ele:*store-controller* oid))
(ele:with-btree-cursor (curs (ele:find-inverted-index class slot))
(loop with i = 0
for (m k v) = (multiple-value-list (ele:cursor-last curs))
then (multiple-value-list (ele:cursor-prev curs))
while (and m (if count
(<= (incf i) count)
t))
collect v))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment