This module gives the users a finer degree of control over when to clean up unreferenced nodes in the query update graph instead of solely relying on garbage collection.
- class LivenessScope(j_scope)¶
A LivenessScope automatically manages reference counting of tables and other query resources that are created in it. It should not be instantiated directly but rather through the ‘liveness_scope’ context manager.
Preserves a query graph node (usually a Table) to keep it live for the outer scope.
- Return type