Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-23 Thread Ian Eslick
On Feb 23, 2008, at 4:03 AM, Leslie P. Polzer wrote: 2) The persistent-metaclass would be extended to support multiple class indexes; one for each store controller instances exist in. I suppose that's the architectural issue you were talking about, but which I didn't fully grasp because I h

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-23 Thread Leslie P. Polzer
> 2) The persistent-metaclass would be extended to support multiple > class indexes; one for each store controller instances exist in. I suppose that's the architectural issue you were talking about, but which I didn't fully grasp because I haven't looked at the code. > I'll do # 1-4 now since

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-22 Thread Ian Eslick
Right now all I want is “do what I mean” behaviour for SETF SLOT- VALUE. AFAICS the current behaviour for this operation is that Elephant attempts to stuff the object into the current sc instead of using the objects home controller. Which seems not exactly sensible to me. Ok, I think I can c

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-22 Thread Ian Eslick
The problem lies in an implementation choice. It can be changed, but it's not as easy as it sounds. 1) The class object caches the class index reference. It currently can only maintain a single cached reference. (from metaclasses.lisp) (defclass persistent-metaclass (standard-class) ((

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-22 Thread Leslie P. Polzer
> Do you need to do indexing operations across stores? i.e. run a > cursor over all objects regardless of which store they are in? No, I don't do this at the moment. I might later, so let's postpone that point. > Ideally, what semantics would you like to see? Right now all I want is “do what

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-21 Thread Ian Eslick
On Feb 21, 2008, at 8:41 AM, Leslie P. Polzer wrote: I'm not sure I understood your message correctly. But see below. Ok, this is an architectural issue that wasn't completely thought out. Currently class indexing effectively limits instances of a class to a specific store. The first tim

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-21 Thread Leslie P. Polzer
I'm not sure I understood your message correctly. But see below. > Ok, this is an architectural issue that wasn't completely thought > out. Currently class indexing effectively limits instances of a class > to a specific store. The first time an instance is saved, the current > *store-controlle

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-20 Thread Ian Eslick
Ok, this is an architectural issue that wasn't completely thought out. Currently class indexing effectively limits instances of a class to a specific store. The first time an instance is saved, the current *store-controller* is used to create the class index tying the class to that store.

Re: [elephant-devel] Cross-references and SETF SLOT-VALUE

2008-02-20 Thread Ian Eslick
I just looked at the code and it appears to call 'get-con' in all the right places. The code certainly is structured to do what you suggest (get controller from the instance slot). I'll chase this down tonight. Perhaps some recent change created a corner case that the tests don't catch,