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 latest version of the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e library is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, with multiple previous versions available, dating back to \u003ccode\u003e3.5.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDisposeBehavior\u003c/code\u003e is an enum that dictates how \u003ccode\u003eSpannerTransaction\u003c/code\u003e handles resource disposal when \u003ccode\u003eDispose\u003c/code\u003e is called.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDisposeBehavior\u003c/code\u003e enum offers three options: \u003ccode\u003eCloseResources\u003c/code\u003e, which closes resources; \u003ccode\u003eDetach\u003c/code\u003e, which leaves resources allocated; and \u003ccode\u003eReleaseToPool\u003c/code\u003e, which returns resources to the pool.\u003c/p\u003e\n"],["\u003cp\u003eUsing the \u003ccode\u003eDetach\u003c/code\u003e option requires at least one instance set to \u003ccode\u003eCloseResources\u003c/code\u003e to prevent resource leaks during parallel reads.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReleaseToPool\u003c/code\u003e option of \u003ccode\u003eDisposeBehavior\u003c/code\u003e is not valid for shared transactions, such as those used in \u003ccode\u003eGetReaderPartitionsAsync\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]