Re: [elephant-devel] Manual interfaces to indexing

2008-03-04 Thread Joubert Nel
Hi Ian, On Mar 4, 2008, at 3:05 PM, Ian Eslick wrote: Does anyone use the manual index interface (enable/disable class indexing, add-class-slot-index, etc) for anything other than derived indices? I'm thinking of removing this interface and instead require a re- evaluation of the defclass

Re: [elephant-devel] Re: Getting count of the number of persistentobjects of a particular class

2008-01-26 Thread Joubert Nel
On Mon, 2008-01-21 at 21:52 +0200, Alex Mizrahi wrote: > IE> Part of the problem with Elephant is that we currently create CLOS > IE> objects in memory for every 'row' that is touched in a query (or > IE> touched during an index operation). We have to de-serialize the > IE> record, create an o

Re: [elephant-devel] Re: Getting count of the number of persistent objectsof a particular class

2008-01-21 Thread Joubert Nel
On Mon, 2008-01-21 at 09:54 -0500, Ian Eslick wrote: > In general, instance initialization should always happen inside a > transaction. This will catch any updates you do to indices or other > variables. > > The instance initialization code in Elephant only forces transactions > for subset

Re: [elephant-devel] Re: Getting count of the number of persistent objectsof a particular class

2008-01-21 Thread Joubert Nel
On Mon, 2008-01-21 at 10:58 +0200, Alex Mizrahi wrote: > JN> I did some reading through the mailing list archives and the Elephant > JN> manual, but cannot find a recommended way of counting the number of > JN> persistent objects of a particular class. > > JN> I have a method that works (using

[elephant-devel] Getting count of the number of persistent objects of a particular class

2008-01-20 Thread Joubert Nel
Hello, I did some reading through the mailing list archives and the Elephant manual, but cannot find a recommended way of counting the number of persistent objects of a particular class. I have a method that works (using map-class) but this is way too slow for my purposes. I did find some postin

IGNORE Re: [elephant-devel] Having trouble getting started with postmodern

2008-01-15 Thread Joubert Nel
Apologies, my mistake - late night; got POSTMODERN and can now (require :ele-postmodern). Joubert On Wed, 2008-01-16 at 01:20 -0500, Joubert Nel wrote: > Hi, > > I just got the latest Elephant from darcs as specified at the top of > http://common-lisp.net/project/elephant/do

[elephant-devel] Having trouble getting started with postmodern

2008-01-15 Thread Joubert Nel
Hi, I just got the latest Elephant from darcs as specified at the top of http://common-lisp.net/project/elephant/downloads.html I'm trying to use postmodern and am using the code in /tests as guidance since I can't find any documentation on using postmodern. Unless I'm mistaken, the ele-postmoder

[elephant-devel] Getting list of persistent classes in a store

2007-06-15 Thread Joubert Nel
Hi all, How can I determine what persistent class objects exist in a store? >From the API documentation for persistent classes I notice all the functions require passing of a class, but let's say I don't know what persistent classes have been stored. Any suggestions? Joubert

Re: [elephant-devel] No reply from Oracle about the BDB issue...

2007-06-15 Thread Joubert Nel
Hi Robert, I also haven't received a reply. I agree with your thoughts below, particularly because Elephant is designed such that you can swap out the back-end if need be. Joubert On Fri, 2007-06-15 at 11:43, Robert L. Read wrote: > I have not received an reply from Oracle to my email message

Re: [elephant-devel] Storing objects in the root when don't care about the key / add same key to root more than once

2007-05-28 Thread Joubert Nel
On Mon, 2007-05-28 at 09:54, Ian Eslick wrote: > On May 28, 2007, at 9:26 AM, Joubert Nel wrote: > > My impression until I saw how persistent objects behave was that > > everything you want to store via Elephant had to be "rooted". > > Did you read through the

Re: [elephant-devel] Storing objects in the root when don't care about the key / add same key to root more than once

2007-05-28 Thread Joubert Nel
On Mon, 2007-05-28 at 08:51, Ian Eslick wrote: > A few clarifications: > > Standard persistent classes are not saved by default. To get access Ian, when are objects that are instanced from persistent classes saved? I simply call (make-instance) on the following class definition: (defclass ri

Re: [elephant-devel] Storing objects in the root when don't care about the key / add same key to root more than once

2007-05-27 Thread Joubert Nel
On Sun, 2007-05-27 at 23:46, Robert L. Read wrote: > On Sun, 2007-05-27 at 16:23 -0400, Joubert Nel wrote: > > My question is: > > Currently I'm using the OID of the object as its key when I > > (add-to-root) because this is the only slot in my class that is > >

[elephant-devel] Storing objects in the root when don't care about the key

2007-05-27 Thread Joubert Nel
Hi - I have a persistent class (i.e. :metaclass persistent-metaclass) defined and am adding a whole bunch of objects that are instances of this class to the root of my Elephant store. In order to retrieve a list of them I do: (map-class fn 'my-class-name) My question is: Currently I'm us

Re: [elephant-devel] bdb licencing

2007-05-23 Thread Joubert Nel
On Wed, 2007-05-23 at 18:28, Robert L. Read wrote: > I agree with Ian. Previously, one definitely required a license for > any public-facing commercial website. > I have not researched any change that Oracle may or may not have made. Reading the Oracle licensing page (http://www.oracle.com/techno

Re: [elephant-devel] Version 0.5.0 vs. 0.6.0

2006-11-25 Thread Joubert Nel
Hi Ian - I use v0.6.0. Not using 0.5.0 at all. On Fri, 2006-11-24 at 17:32 -0500, Ian Eslick wrote: > Do we have any remaining users of Elephant version 0.5.0 out there? > I want to remove support for 0.5.0->0.6.0 upgrades. This makes the > code cleaner as I found a problem with DB versio

Re: [elephant-devel] Re: (open-store) (close-store) (open-store) fails - running x86_64 on SBCL

2006-10-30 Thread Joubert Nel
On Monday 30 October 2006 05:38, Marco Baringer wrote: > Joubert Nel <[EMAIL PROTECTED]> writes: > > I have started reading the archived threads and notice that this may be > > something related to running on x86_64? > > it's due to a bug in the serializer and f

[elephant-devel] Fwd: (open-store) (close-store) (open-store) fails - running x86_64 on SBCL

2006-10-29 Thread Joubert Nel
Hi, I've noticed that when I call (open-store *my-storage*), then (close-store), then (open-store *my-storage*) again, my LISP simply hangs. From within SLIME/Emacs I don't get any feedback but when I run directly in SBCL I get the following error message after the 2nd (open-store): "fat

[elephant-devel] (get-from-root "key") results in "Heap exhausted" error

2006-10-29 Thread Joubert Nel
Hi, I've just started using Elephant and have run into a "Heap exhausted" error message when I try to retrieve a key's value from the root. I am doing: (add-to-root "first" "joubert") (get-from-root "first") After the 2nd expression I get the results as per the attachment. I'm r

[elephant-devel] (get-from-root "key") results in "Heap exhausted" error

2006-10-26 Thread Joubert Nel
Hi, I've just started using Elephant and have run into a "Heap exhausted" error message when I try to retrieve a key's value from the root. I am doing: (add-to-root "first" "joubert") (get-from-root "first") After the 2nd expression I get the results as per the attachment. I'm