mirror of
https://github.com/iv-org/documentation.git
synced 2024-10-01 01:35:51 -04:00
Add "About the database and tables"
This commit is contained in:
parent
58231a01a6
commit
ea4a2333d9
14
About-the-database-and-tables.md
Normal file
14
About-the-database-and-tables.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Invidious needs one PostgreSQL database with five tables.
|
||||||
|
|
||||||
|
`channel_videos`
|
||||||
|
`channels`
|
||||||
|
`nonces`
|
||||||
|
`users`
|
||||||
|
`videos`
|
||||||
|
|
||||||
|
The table `videos` grows a lot and needs the most storage. You can clean it up using following commands:
|
||||||
|
```bash
|
||||||
|
$ sudo -i -u postgres
|
||||||
|
$ psql invidious -c "TRUNCATE TABLE videos"
|
||||||
|
$ exit
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user