Skip to content
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

Open
dingweihua opened this issue Oct 1, 2021 · 0 comments
Open

查询cron task列表,使用行迭代遍历更优? #58

dingweihua opened this issue Oct 1, 2021 · 0 comments

Comments

@dingweihua
Copy link

for page := 1; page <= maxPage; page++ {

上面这里是通过for循环进行了多次的分页查询。GORM是支持进行行迭代遍历查询的,是不是行迭代遍历效率更高一些呢?
参考:https://gorm.io/zh_CN/docs/advanced_query.html#%E8%BF%AD%E4%BB%A3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant