Re: [elephant-devel] Schema evolution

2007-11-05 Thread Henrik Hjelte
I am no expert at how elephant does this now, I've been digging more in the low level areas. But I think that after some time you really will want schema changes to be saved, and to be able to have different versions of classes, and to have a lazy update of instances. It makes working with the sys

Re: [elephant-devel] Schema evolution

2007-11-05 Thread Tayssir John Gabbour
Ian Eslick wrote: > Redefining a class via defclass, thus initiating calls to change- > instance-for-redefined-class is harder because it is lazy in some > (or all) lisps. When a defclass causes a change in a standard class > schema, the instances of that class are updated at latest when an > obj

Re: [elephant-devel] Schema evolution

2007-10-27 Thread Ian Eslick
So there are a number of cases where you might want to know you are being shot in the foot. 1) You re-evaluate a defclass which drops a persistent slot. a) the class is indexed, so the system checks for instances - if there are none, it succeeds silently otherwise do (b) b) the class is

Re: [elephant-devel] Schema evolution

2007-10-25 Thread [EMAIL PROTECTED]
I kind of agree with Robert. It has taken me some time to realize that Elephant is not a DBMS. As such, and as documented in the manual, if someone changes the schema, s/he would be responsible for writing such a function to walk down the entire DB and refresh the data. If the other solutio

Re: [elephant-devel] Schema evolution

2007-10-24 Thread Robert L. Read
This is a very complex subject. In the greatest generality, one needs a function to go from one schema to the next; for example, if you change the type or encoding of a slot, one must provide a translation function for the slot. I personally, in the style in which I am working, would be most comf