https://gorm.io/zh_CN/docs/context.html

能说下会话模式的用法吗?以及什么场景下使用会话模式?如果不使用会话模式难道就会引发并发安全问题吗?

Comment From: github-actions[bot]

The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking

Comment From: li-jin-gou

可以看下这个 - 会话的用法:https://gorm.io/zh_CN/docs/session.html - V2复用Statemnt存在的问题: https://gorm.io/zh_CN/docs/method_chaining.html#%E6%96%B9%E6%B3%95%E9%93%BE%E5%92%8C%E5%8D%8F%E7%A8%8B%E5%AE%89%E5%85%A8