最近在使用该模块,发现一个问题: 1. 在指定sqlite的指定有效时间后(sqliteDb.SetConnMaxLifetime(1 * time.Minute)),发现到达时间后再次请求数据里的连接是无数据的,这个设计有点不理解,因为内存模式不应该是数据连接池共享的吗,那么新的连接应该也可以获得数据才对; 2. 针对上面的问题如果不设置有效期,我设置了连接池的活跃连接数大小如100,那么从设计角度来讲内存表模式,而且不存在网络异常问题,是不是这100个连接会一直长连接,然后 这100个连接都对应自己的缓存,没有共享内存数据。 上面的问题很困惑,还请帮忙解答一下。
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: gcggcg
已解决