[ZODB-Dev] How to resync with current db
Paolo Losi
paolo at linux.netline.it
Fri Feb 4 04:29:55 EST 2005
Dieter Maurer wrote:
>
> You get hit by the loose coupling of connections to transactions
> in ZODB 3.2:
>
> Tim changed this for ZODB 3.3.
I forgot to mention but I was using ZODB 3.3.1alfa...
I get the same behaviour with it.
>>...
>>Could be closing the connection and database (and loosing all
>>the cache) an alternative viable solution?
>
>
> The method "Connection._flush_invalidations" processes
> and flushes the pending invalidations.
I think I found the proper interface: Connection.sync().
It calls _flush_invalidations, as you suggested, and
"clean" (abort) the current transaction...
Thank you very much for your help! :-)
Paolo
More information about the ZODB-Dev
mailing list