Re: [elephant-devel] Persistent class slot

2010-06-18 Thread Warren Lynn
> > You can do that without persistent class slots -- make a counter class and > update its value. > Something like this: > > (defpclass counter () > ((classname :index t :initarg :classname) > (counter :initform 0))) > > Then you can increment it automatically: > > (defmethod initialize-instan

Re: [elephant-devel] Persistent class slot

2010-05-30 Thread Warren Lynn
> Why not have a caching get-instance-count function instead? > > Leslie > > I doubt that will work well for datasets on which people are adding/deleting records. If we just cache the count, then we will need to do a recount every time some one adds/deletes some records, which will halt the site f

[elephant-devel] Unique persistent slot value

2010-05-29 Thread Warren Lynn
Hi, Is there a simple way to ensure that values of a persistent slot must be unique? Namely, when a instance is persisted (either with the plain make-instance or at the end of a transaction), an error of condition will be thrown if the slot value is not unique. Thank you. Warren _

[elephant-devel] Persistent class slot

2010-05-29 Thread Warren Lynn
Hi, As I understand from the online document, class slots with :allocation :class are not persisted. Is there any plan to change that soon? I first did not think that is such a big deal, but then I encountered a performance issue to which I think persisted class slot may be the answer. The issue