Detaches from the transaction and leaves resources still allocated. You must set
DisposeBehavior to CloseResources on at least one
instance to ensure there are no resource leaks when doing parallel reads.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["The latest version available is 5.0.0-beta05, with several previous versions accessible, including stable releases and beta versions."],["`DisposeBehavior` is an enum that dictates how `SpannerTransaction` handles resource disposal when the `Dispose` method is called."],["The `DisposeBehavior` enum offers three options: `CloseResources`, which automatically closes resources, `Detach`, which leaves resources allocated, and `ReleaseToPool`, which releases resources back to the global pool."],["The `Detach` option requires at least one instance to have the `CloseResources` dispose behavior to prevent resource leaks during parallel reads."],["The `ReleaseToPool` option cannot be used with shared transactions."]]],[]]