Updated Database Information and Maintenance (markdown)

This commit is contained in:
Omar Roth 2019-05-18 18:10:32 -05:00 committed by Perflyst
parent 7853876832
commit 43902d7345
1 changed files with 7 additions and 6 deletions

View File

@ -1,11 +1,12 @@
Invidious needs one PostgreSQL database which has the following tables.
`channel_videos` Stores truncated video info, used to create user feeds
`channels` Stores UCID and author name
`nonces` Keeps track of tokens issued to prevent CSRF
`users` Stores user info, such as preferences, username, subscriptions
`session_ids` Keeps track of user sessions
`videos` Stores video cache, used to create "top" page
- `annotations` Caches annotation data if `cache_annotations` is enabled in [`config.yml`](https://github.com/omarroth/invidious/wiki/Configuration)
- `channel_videos` Stores truncated video info, used to create user feeds
- `channels` Stores UCID and author name
- `nonces` Keeps track of tokens issued to prevent CSRF
- `users` Stores user info, such as preferences, username, subscriptions
- `session_ids` Keeps track of user sessions
- `videos` Stores video cache, used to create "top" page
The table `videos` grows a lot and needs the most storage. You can clean it up using following commands:
```bash