You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question is: Do we really need Release() when using Exec()? The Query object is obtained from the pool with an initial refCount of 1, but it's unclear whether:
Exec() properly manages the refCount internally
The lack of Release() might cause resource leaks
Multiple Release() calls could potentially affect other queries using recycled objects from the pool
We've observed the Pattern B in godoc examples, but we're unsure if this is actually necessary or potentially problematic. Could you help clarify whether Release() is required when using Exec() and the implications of both patterns?
Would appreciate insights on the intended resource management approach here.
The text was updated successfully, but these errors were encountered:
I'd like to discuss a potential issue in gocql's query resource management. Here's the situation:
The question is: Do we really need Release() when using Exec()? The Query object is obtained from the pool with an initial refCount of 1, but it's unclear whether:
We've observed the Pattern B in godoc examples, but we're unsure if this is actually necessary or potentially problematic. Could you help clarify whether Release() is required when using Exec() and the implications of both patterns?
Would appreciate insights on the intended resource management approach here.
The text was updated successfully, but these errors were encountered: