-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查询cron task列表,使用行迭代遍历更优? #58
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go-gin-api/internal/cron/cron_server/service_start.go
Line 30 in 05f3370
上面这里是通过for循环进行了多次的分页查询。GORM是支持进行行迭代遍历查询的,是不是行迭代遍历效率更高一些呢?
参考:https://gorm.io/zh_CN/docs/advanced_query.html#%E8%BF%AD%E4%BB%A3
The text was updated successfully, but these errors were encountered: