This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Description
Description
Synchrotron workers are maxing out db connections, resulting in multi-minute scheduling time:

Inspection shows that these are operations of the shape
DELETE FROM device_inbox WHERE ctid IN (
SELECT ctid FROM device_inbox
WHERE user_id = '@<user_id>' AND device_id = 'LTHNOYWSMJ' AND stream_id <= 7526430
LIMIT 100
)
Some queries have LIMIT 1000
rather than LIMIT 100
.
Steps to reproduce
- have lots of messages in
device_inbox
/sync
Homeserver
EMS host
Synapse Version
1.94.0
Installation Method
Docker (matrixdotorg/synapse)
Database
postgres 11
Workers
Multiple workers
Platform
k8s
Configuration
No response
Relevant log output
Anything else that would be useful to know?
No response