Seeing a lot of mysql statements in the logfile

Hello!
I am currently checking a server that regularly runs out of memory.
During my check I also checked the Gitea.log and found really heaps of entries like this one:

2021/03/11 14:18:31 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1615468699 1615468709 1] - 2.598434ms
2021/03/11 14:18:41 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1615468709 1615468719 1] - 1.933367ms
2021/03/11 14:18:51 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1615468719 1615468729 1] - 1.891428ms
2021/03/11 14:19:01 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT user_id, count(*) AS count FROM notification WHERE user_id IN (SELECT user_id FROM notification WHERE updated_unix >= ? AND updated_unix < ?) AND status = ? GROUP BY user_id [1615468729 1615468739 1] - 1.910495ms

I just want to be sure that this is an expected behaviour?

Thanks for any help
Tim