Skip to content

Why did you use transactions in queries? #20

Answered by benbjohnson
alexxty7 asked this question in Q&A
Discussion options

You must be logged in to vote

I find it easier to compose lower level helper functions if they all use a *sql.Tx. If there was a performance hit and I needed to optimize then I would consider removing them then.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benbjohnson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants