Hi,<br><br>using elephant with a berkeley backend, how should I go about modelling tag cloud like<br>functionality?<br><br>If I have a number of persistent classes, f.ex.  Things and Items and I wish to be <br>able to tag each Thing and each Item with one or more tags (let's use keywords f.ex.)<br>
<br>The functionality I want is to be able to efficiently:<br> - retrieve all Things (or Items ) tagged with any of a given set of tags/keyword<br>   as in  (give-me-all-tagged 'Thing :any-of '(:foo :bar :baz))<br>
 - retrive all Things (or Items) tagged with all of a given set of tags, as in<br>   (give-my-all-tagged 'Thing :all-of '(:foo :baz))<br><br clear="all">For now I've been using b-trees with the tags as keys and done some set logic in code <br>
on top of that, but not sure how that'll work with large datasets (thousands of Things<br>in existence).<br><br>Any suggestions?<br> <br>Regards,<br>   Aslak<br>