Updated SQL for analyzing Synapse PostgreSQL database stats (markdown)
parent
8b2f4b6b47
commit
92868872c3
|
@ -144,8 +144,10 @@ public.state_group_edges - 122 MB
|
||||||
|
|
||||||
## Lookup room state info by list of room_id
|
## Lookup room state info by list of room_id
|
||||||
```sql
|
```sql
|
||||||
SELECT * FROM room_stats_state
|
SELECT rss.room_id, rss.name, rss.canonical_alias, rss.topic, rss.encryption, rsc.joined_members, rsc.local_users_in_room, rss.join_rules
|
||||||
WHERE room_id IN (
|
FROM room_stats_state rss
|
||||||
|
LEFT JOIN room_stats_current rsc USING (room_id)
|
||||||
|
WHERE room_id IN (WHERE room_id IN (
|
||||||
'!OGEhHVWSdvArJzumhm:matrix.org',
|
'!OGEhHVWSdvArJzumhm:matrix.org',
|
||||||
'!YTvKGNlinIzlkMTVRl:matrix.org'
|
'!YTvKGNlinIzlkMTVRl:matrix.org'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue