add complexity sql command

This commit is contained in:
HF 2023-07-09 11:36:11 +02:00
parent 88598c4ecf
commit f8b77b5982
1 changed files with 6 additions and 0 deletions

View File

@ -61,3 +61,9 @@ SELECT nspname || '.' || relname AS "relation",
ORDER BY pg_total_relation_size(c.oid) DESC
LIMIT 20;
```
show complexity of room:
```sql
SELECT COUNT(*)/500.0 FROM current_state_events WHERE room_id='...';
```