Updated SQL for analyzing Synapse PostgreSQL database stats (markdown)

master
Alexey Murz Korepov 2021-04-13 18:01:55 +03:00
parent fe571f6ad3
commit 8b2f4b6b47
1 changed files with 9 additions and 0 deletions

@ -141,3 +141,12 @@ public.state_group_edges - 122 MB
43601 !iNmaIQExDMeqdITdHH:matrix.org | Riot 43601 !iNmaIQExDMeqdITdHH:matrix.org | Riot
43601 !iNmaIQExDMeqdITdHH:matrix.org | Riot Web/Desktop 43601 !iNmaIQExDMeqdITdHH:matrix.org | Riot Web/Desktop
``` ```
## Lookup room state info by list of room_id
```sql
SELECT * FROM room_stats_state
WHERE room_id IN (
'!OGEhHVWSdvArJzumhm:matrix.org',
'!YTvKGNlinIzlkMTVRl:matrix.org'
)
```