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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eDisposeBehavior\u003c/code\u003e enum defines how \u003ccode\u003eSpannerTransaction\u003c/code\u003e handles resource management upon disposal.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCloseResources\u003c/code\u003e option automatically closes resources when \u003ccode\u003eDispose(Boolean)\u003c/code\u003e is called on a \u003ccode\u003eSpannerTransaction\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDetach\u003c/code\u003e option only detaches from the transaction, leaving resources allocated, requiring the use of \u003ccode\u003eCloseResources\u003c/code\u003e on at least one instance to avoid leaks during parallel reads.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReleaseToPool\u003c/code\u003e option returns resources to the global pool upon disposal but is not valid for shared transactions.\u003c/p\u003e\n"],["\u003cp\u003eThe page content covers multiple versions of the documentation, and as of the latest, the most recent version is 5.0.0-beta05, with a total of 20 versions listed.\u003c/p\u003e\n"]]],[],null,[]]