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
When opening connection to a database a new goroutine is created. That is OK, if only one connection (or few) is used through the program. But in case the program has to be made a way, that a new connection is made on demand, the problem arise.
With every new connection a new goroutine is created and another 8Kb of memory is consumed.
Describe the feature
When opening connection to a database a new goroutine is created. That is OK, if only one connection (or few) is used through the program. But in case the program has to be made a way, that a new connection is made on demand, the problem arise.
With every new connection a new goroutine is created and another 8Kb of memory is consumed.
Because of that, maybe this information can be added to https://gorm.io/docs/connecting_to_the_database.html
The obvious solution for those cases is simple:
Original
New:
The text was updated successfully, but these errors were encountered: