From ea4a2333d97e0fd53b8bb30ece3b86b4f11d9614 Mon Sep 17 00:00:00 2001 From: Perflyst Date: Thu, 24 Jan 2019 18:49:21 +0100 Subject: [PATCH] Add "About the database and tables" --- About-the-database-and-tables.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 About-the-database-and-tables.md diff --git a/About-the-database-and-tables.md b/About-the-database-and-tables.md new file mode 100644 index 0000000..15dfae4 --- /dev/null +++ b/About-the-database-and-tables.md @@ -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 +``` \ No newline at end of file