Package Products :: Package ZenUtils :: Module AutoGCObjectReader |
[hide private]
[frames] | no frames]

# Module AutoGCObjectReader

source code

Classes | [hide private]
AutoGCObjectReader ZODB has semipeculiar behavior wherein the object cache is only garbage collected at the transaction boundaries.

Functions | [hide private]
_normal_to_auto(connection, chunk_size=1000) Replace the ObjectReader on a Connection with an AutoGCObjectReader. | source code
_auto_to_normal(connection) Uninstall an AutoGCObjectReader from a Connection, replacing it with the original ObjectReader. | source code
gc_cache_every(chunk_size=1000, db=None) Temporarily replace the ObjectReaders on the current database with AutoGCObjectReaders. | source code
gc_cache_every_decorator(chunk_size=1000, db=None) Temporarily replace the ObjectReaders on the current database with AutoGCObjectReaders. | source code

Variables | [hide private]
| log = `logging.getLogger("zenUtils.AutoGCObjectReader")`

Function Details | [hide private]

### gc_cache_every(chunk_size=1000, db=None) | source code
Temporarily replace the ObjectReaders on the current database with AutoGCObjectReaders. WARNING: Will abort any open transaction! Decorators: `@contextmanager`

### gc_cache_every_decorator(chunk_size=1000, db=None) | source code
Temporarily replace the ObjectReaders on the current database with AutoGCObjectReaders. WARNING: Will abort any open transaction!