add state_groups_state sql by room
This commit is contained in:
parent
f8b77b5982
commit
c76d6e94c9
|
@ -48,6 +48,16 @@ check events of room sorted by time:
|
||||||
select content, type, received_ts from events where room_id = '!scTbMproDsaihhGesQ:pixelplanet.fun' and type = 'm.room.message' order by topological_ordering limit 100;
|
select content, type, received_ts from events where room_id = '!scTbMproDsaihhGesQ:pixelplanet.fun' and type = 'm.room.message' order by topological_ordering limit 100;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
largest room by state_groups_state
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.room_id, COUNT(s.room_id)
|
||||||
|
FROM state_groups_state s
|
||||||
|
GROUP BY s.room_id
|
||||||
|
ORDER BY COUNT(s.room_id) DESC
|
||||||
|
LIMIT 20;
|
||||||
|
```
|
||||||
|
|
||||||
show tables by size:
|
show tables by size:
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
|
|
Loading…
Reference in New Issue
Block a user