mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Log when we go slow
This commit is contained in:
parent
2d773ab776
commit
de1cf98df3
@ -861,6 +861,7 @@ func (s *Storage) LatestEventNIDInRooms(roomIDs []string, highestNID int64) (roo
|
||||
if len(slowRooms) == 0 {
|
||||
return nil // no work to do
|
||||
}
|
||||
logger.Warn().Int("slow_rooms", len(slowRooms)).Msg("LatestEventNIDInRooms: pos value provided is far behind the database copy, performance degraded")
|
||||
|
||||
slowRoomToLatestNIDs, err := s.EventsTable.LatestEventNIDInRooms(txn, slowRooms, highestNID)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user