go-gorm / gorm

The fantastic ORM library for Golang, aims to be developer friendly
https://gorm.io
MIT License
37.05k stars 3.94k forks source link

Gorm lack of performance!? #7140

Closed llogen closed 3 months ago

llogen commented 3 months ago

Your Question

I am using gorm as my database adapter and when running my application, gorm database calls increase linearly over time. If I restart the application it starts from the beginning. My application has no memory leak since the memory usage is stable. Also, it has nothing to do with gorm connections. Do you know where this problem has its root cause? In the graph below the rising of the calls are visualized. After restarting the application, it starts with very small access times. PS: The underlying database that is used is PostgreSQL.

Screenshot from 2024-08-06 13-34-06

The document you expected this should be explained

Expected answer

I expect, that this is maybe a bug or a configuration issue.