From aslakg at gmail.com Mon Apr 13 09:05:03 2009 From: aslakg at gmail.com (Aslak Gronflaten) Date: Mon, 13 Apr 2009 17:05:03 +0800 Subject: [elephant-devel] How to model a tag cloud? Message-ID: <57870af40904130205mf6aa6d1sb9ce220d83cf085a@mail.gmail.com> Hi, using elephant with a berkeley backend, how should I go about modelling tag cloud like functionality? If I have a number of persistent classes, f.ex. Things and Items and I wish to be able to tag each Thing and each Item with one or more tags (let's use keywords f.ex.) The functionality I want is to be able to efficiently: - retrieve all Things (or Items ) tagged with any of a given set of tags/keyword as in (give-me-all-tagged 'Thing :any-of '(:foo :bar :baz)) - retrive all Things (or Items) tagged with all of a given set of tags, as in (give-my-all-tagged 'Thing :all-of '(:foo :baz)) For now I've been using b-trees with the tags as keys and done some set logic in code on top of that, but not sure how that'll work with large datasets (thousands of Things in existence). Any suggestions? Regards, Aslak -------------- next part -------------- An HTML attachment was scrubbed... URL: From reddaly at gmail.com Wed Apr 15 00:02:41 2009 From: reddaly at gmail.com (Red Daly) Date: Tue, 14 Apr 2009 17:02:41 -0700 Subject: [elephant-devel] Close all stores on exit In-Reply-To: <64887.88.73.230.97.1234342299.squirrel@mail.stardawn.org> References: <61298.88.73.197.249.1234277671.squirrel@mail.stardawn.org> <51F633EB-75B1-4B02-897F-FABEFE4CFD1B@media.mit.edu> <64887.88.73.230.97.1234342299.squirrel@mail.stardawn.org> Message-ID: On Wed, Feb 11, 2009 at 1:51 AM, Leslie P. Polzer wrote: > > > That sounds like a good idea. I've never had problems with recovery > > or recovery time in my sites, but it is good practice to shut down > > cleanly. > > It's more of a problem in a multi-process environment: > > As soon as one process initiates recovery then the other process has > to be restarted (the stores cannot be closed either when it's come > to that). Just for the record, whenever there is a power-outage or other crash my recoveries take about 30 minutes. Since this only happens every few months, it is no big deal. I am able to avoid long recoveries by running db_checkpoint every minute or so on the database. I also run db_deadlock to prevent deadlocks. This enhancement is appreciated. thanks Red -------------- next part -------------- An HTML attachment was scrubbed... URL: From franks-muc at web.de Sat Apr 18 22:10:08 2009 From: franks-muc at web.de (Frank Schorr) Date: Sun, 19 Apr 2009 00:10:08 +0200 Subject: [elephant-devel] deserialization error with LispWorks on win32 and postmodern Message-ID: <1667660991@web.de> This is with LispWorks on win32 and postmodern I'm still using the old version 0.9 and tried upgrading now since I would like to use the new snapshot feature. pulled the latest version. open-store with a fresh db results in an error as shown below. Best regards Frank Elephant deserialization error: NIL 1 (continue) retry db-postmodern transaction 2 DB-POSTMODERN::ABORT-TRANSACTION 3 (abort) Abort job 19 :(BIND-STANDARD-STREAMS-AND-EXECUTE # 21DBF89F> (FUNCALL-BACKGROUND-JOB-AUX # BACKGROUND-REGION-EVAL (# # # # T NIL NIL))) Type :b for backtrace, :c