Why is the native method significantly faster than GORM in my tests? With GORM, I noticed that it initially performs quite well with 2 milliseconds response times for 1000 users and 100,000 requests. However, as the request load increases, the response time grows to 6 seconds. In contrast, when using sql.DB, the performance remains consistent, and this seems to be because sql.DB implicitly calls the db.Close() method, which allows it to maintain a much faster response time. However, I couldn't find any code in GORM to manually release connections back to the pool.
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 30 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: GP-JVM
你这个界面的数据是用什么工具跑出来的
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 30 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: mcmy
你这个界面的数据是用什么工具跑出来的
wrk或者apache bench,现在解决了,是代码问题,当时忽略了报错
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 30 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 ✨