gogf / gf

GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
https://goframe.org
MIT License
11.1k stars 1.52k forks source link

use orm ALL() search 10w data,but server restart #3642

Open MrGlp opened 3 weeks ago

MrGlp commented 3 weeks ago

Go version

1.20

GoFrame version

2.1

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

g.Model(s.TableName(staticTime)).Where("time = ?", staticTime).
        OrderDesc("num").
        Limit(hotNum).All()
if mRes.IsEmpty() {
    return res, err
}
err = mRes.Structs(&res)        

This query returns 10W data, and the program crashes directly

env: alibaba yun k8s

The memory monitoring kanban board doesn't see the change, it's a straight line

What did you see happen?

g.Model(s.TableName(staticTime)).Where("time = ?", staticTime).
        OrderDesc("num").
        Limit(hotNum).All()
if mRes.IsEmpty() {
    return res, err
}
err = mRes.Structs(&res)        

This query returns 10W data, and the program crashes directly

env: alibaba yun k8s

The memory monitoring kanban board doesn't see the change, it's a straight line

What did you expect to see?

i want run success

MrGlp commented 3 weeks ago

i need you help