[elephant-devel] Re: Re: sqite3 - always increase database size

Alex Mizrahi killerstorm at newmail.ru
Tue Apr 8 20:17:14 UTC 2008


 > Will garbage collector be added into elephant in the future?

I think so, I remember Ian Eslick mentioned it, but I don't know it it will 
be *near* future -- it is quite challenging thing.
perhaps Ian will clarify if he has ideas on this.

 > One more thing, do I still have use remove-kv with drop-pobject?

yes. if you'll just do drop-pobject but not remove-kv, you'll be able to 
retrieve object from btree, but reading slot will cause slot-unbound error, 
that way you'll know object isn't there :)
at least this way documentation suggests, i didn't try it myself:

drop-pobject reclaims persistent object storage by unbinding
   all persistent slot values.  It can also helps catch errors
   where an object should be unreachable, but a reference still
   exists elsewhere in the DB.  On access, the unbound slots
   should flag an error in the application program.  IMPORTANT:
   this function does not clear the cached object instance or any
   serialized references still in the db.  Need a migration or GC
   for that!  drop-instances is preferred as it implements the proper
   behavior for indexed classes







More information about the elephant-devel mailing list