Skip to content

Commit

Permalink
simplify instructions for regenerating user_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Nov 4, 2017
1 parent f851bc8 commit 2ac6dea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/user_directory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
User Directory API Implementation
=================================

The user directory is currently maintained based on the 'visible' users
on this particular server - i.e. ones which your account shares a room with, or
who are present in a publicly viewable room present on the server.

The directory info is stored in various tables, which can (typically after
DB corruption) get stale or out of sync. If this happens, for now the
quickest solution to fix it is:

```
UPDATE user_directory_stream_pos SET stream_id = NULL;
```

and restart the synapse, which should then start a background task to
flush the current tables and regenerate the directory.

0 comments on commit 2ac6dea

Please sign in to comment.