[ZODB-Dev] Packless and copyTransactionsFrom()????

Jim Fulton jim@zope.com
Mon, 20 Aug 2001 13:52:04 -0400


Christian Robottom Reis wrote:
> 
> On Mon, 20 Aug 2001, Jim Fulton wrote:
> 
> > > How do I do it while keeping the oids the same?  For better or worse we are
> > > using the generated _p_oid like the primary key in RDMS-land.
> >
> > Bad bad bad. :)
> 
> Bad as in "Don't do it if you still have a choice?" We've chosen to use an
> independent OID that we autogenerate, but I guess _p_oid's uniqueness is
> convenient.

But persistent ids don't survive export and import. 
They should not be used as if they were meaningful,
at the application level.

Jim

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org