Your Question

GORM隔一段时间后,就会长时间不响应

GORM may not respond for a long time after a certain period of time

The document you expected this should be explained

前端取消请求后

After the front-end cancels the request

Gorm GORM may not respond for a long time after a certain period of time ,GORM隔一段时间后,就会长时间不响应

后端的数据库查询直接cancel了

The backend database query was directly cancelled

Gorm GORM may not respond for a long time after a certain period of time ,GORM隔一段时间后,就会长时间不响应

查看数据库的连接正常

Check if the connection to the database is normal

Gorm GORM may not respond for a long time after a certain period of time ,GORM隔一段时间后,就会长时间不响应

Expected answer

gorm正常查询数据库

Gorm queries the database normally

Comment From: black-06

Check if the connection to the database is normal

Excuse me, how do you check the db connection?

Comment From: aohanhongzhi

Check if the connection to the database is normal

Excuse me, how do you check the db connection?

I dont know, but I found the problem is cause by redis ,not grom