Re: [ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread Jim Fulton
On Tue, Sep 27, 2011 at 2:26 PM, Stephan Richter wrote: ... > Also, how does the ZODB handle circular references within non-persistent > objects? I assume pickle handles this? Yes. Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton ___ For more i

Re: [ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread Jim Fulton
On Tue, Sep 27, 2011 at 12:45 PM, Vincent Pelletier wrote: > Le mardi 27 septembre 2011 12:47:42, Jim Fulton a écrit : >> Generally speaking, clases and methods are not stored in the database, >> only class names. > > (This mail is out of topic... Probably only interesting to ZODB gurus.) > > This

Re: [ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread Stephan Richter
On Tuesday, September 27, 2011, Jim Fulton wrote: > - Are stored by value, rather than by reference. So if, in your > application, two persistet objects refer to the same non-persistent > object, after being stored and reloaded, they non-persistent object > will be duplicated and unshared. C

Re: [ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread Vincent Pelletier
Le mardi 27 septembre 2011 12:47:42, Jim Fulton a écrit : > Generally speaking, clases and methods are not stored in the database, > only class names. (This mail is out of topic... Probably only interesting to ZODB gurus.) This reminds me of something suspicious in ZODB code. I think there is a b

Re: [ZODB-Dev] Is there any convenient way to reduce the storage file size after delete something in database?

2011-09-27 Thread Jim Fulton
On Tue, Sep 27, 2011 at 4:23 AM, 刘一新 wrote: > I found that the size of the storage file (test.fs for example) does not > change when I remove some or all object from it. > To empty test.fs, I recreate it. > But If I want to only remove some object in test.fs, I must do following: >    1. zeopack t

Re: [ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread Jim Fulton
On Tue, Sep 27, 2011 at 6:16 AM, 刘一新 wrote: > Hi. I Use eye to browse the ZODB database. There, the methods of the float > object or any normal class objects are also shown. Are these methods stored > in the database? Generally speaking, clases and methods are not stored in the database, on

Re: [ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread Adam GROSZER
Hello, Some links for you: http://www.ibm.com/developerworks/aix/library/au-zodb/ http://www.zodb.org/zodbbook/ http://pypi.python.org/pypi/zodbbrowser On Tue, 27 Sep 2011 18:16:08 +0800 you wrote: > > Hi. I Use eye to browse the ZODB database. There, the methods of the > float object or any no

[ZODB-Dev] the difference between normal class object and the ZODB Persistent subclass object

2011-09-27 Thread 刘一新
Hi. I Use eye to browse the ZODB database. There, the methods of the float object or any normal class objects are also shown. Are these methods stored in the database? Besides doing the _p_change magic, is there any extra advantage to write class derived from persistent.Persistent? Does ZODB store

Re: [ZODB-Dev] Is there any convenient way to reduce the storage file size after delete something in database?

2011-09-27 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The ZODB basically does only append to the database file (Data.fs). Only packing (e.g. through zeopack) will write a new (and smaller) Data.fs file containing the referenced "life" objects. - -aj 刘一新 wrote: > I found that the size of the storage file

Re: [ZODB-Dev] Is there any convenient way to reduce the storage file size after delete something in database?

2011-09-27 Thread Vincent Pelletier
Le mardi 27 septembre 2011 10:23:01, 刘一新 a écrit : > But If I want to only remove some object in test.fs, I must do following: >1. zeopack the database >2. rm -f test.fs.old > Am I right? You are right. > BTW, what does the zeopack exactly do? And when should I use it? I try to > find som

[ZODB-Dev] Is there any convenient way to reduce the storage file size after delete something in database?

2011-09-27 Thread 刘一新
I found that the size of the storage file (test.fs for example) does not change when I remove some or all object from it. To empty test.fs, I recreate it. But If I want to only remove some object in test.fs, I must do following: 1. zeopack the database 2. rm -f test.fs.old Am I right? BTW, w