Open
Description
OpenIM Server Version
v3.8.3-patch.4
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Source Code Deployment
Bug Description and Steps to Reproduce
Func batchGetCache2
(pkg/common/storage/cache/redis/batch.go) has a bug in loop querying the database:
- If a large amount of data is fetched each time (e.g., loading 200 messages at once), the loop querying the database may cause long delays.
- If the concurrency is high, it can easily overload the DB.
Tips: RocksCache’s default empty expiration is 60s, so many empty results may penetrate to the DB.
Screenshots Link
