Using the context of a request for each new conn #1944
Answered
by
vmihailenco
Jorge-Guillermo
asked this question in
Q&A
-
I'm trying to use go-pg as persistence layer in a service which uses a REST API.
However we are seeing some ugly race conditions, but before reporting them as issues I was wondering if this approach is not considered a good practice and we should be using a different context for the connections. |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Mar 1, 2022
Replies: 1 comment 1 reply
-
That is a standard practice if I understand you correctly. You should not see any race conditions. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jorge-Guillermo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is a standard practice if I understand you correctly. You should not see any race conditions.