Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove redundant room_memberships join to find participating server…
Browse files Browse the repository at this point in the history
…s in a room (#15732)

Spawning from #15731
  • Loading branch information
MadLittleMods authored Jun 7, 2023
1 parent 5c24d7b commit 195b6a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/15732.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Simplify query to find participating servers in a room.
5 changes: 2 additions & 3 deletions docs/usage/administration/admin_faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ What servers are currently participating in this room?
Run this sql query on your db:
```sql
SELECT DISTINCT split_part(state_key, ':', 2)
FROM current_state_events AS c
INNER JOIN room_memberships AS m USING (room_id, event_id)
WHERE room_id = '!cURbafjkfsMDVwdRDQ:matrix.org' AND membership = 'join';
FROM current_state_events
WHERE room_id = '!cURbafjkfsMDVwdRDQ:matrix.org' AND membership = 'join';
```

What users are registered on my server?
Expand Down

0 comments on commit 195b6a2

Please sign in to comment.