Robert,

Thanks for the clarification. I think I got it and agree.

BTW, after running your code using persistent objects and adding 5000 users, the total on-disk storage is now 5MB (as compared to 9MB by using non-persistent objects), which concurs with what Ian mentioned yesterday. Anyway, just wanted to point this out for the rest of us.

Thanks again,
Daniel

On Nov 14, 2006, at 3:20 PM, Robert L. Read wrote:

You must either do something like add-to-root, or inherit from persistent-class.  In that,
you are correct.  Once an object is persisted by either mechanism, it won't be "garbage collected"
from the store; you can kill you lisp image and recreated it and then retrieve the object.
Garbage collection within memory is a separate issue, and less important---you can always
get back to the object.

I feel that I just muddied things by using "add-to-root" here --- creating a persistent 
class is almost always better for a serious application.  

_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to