compress sync_media table for mariadb
Added steps to compress sync_media table for mariadb. For 1,608 records, I am seeing the size reduced from 642.8 MB to 55.8 MB
This commit is contained in:
parent
7aa9c0ec8a
commit
45b8b3f65b
|
@ -79,6 +79,13 @@ entry in the container or stdout logs:
|
||||||
If you see a line similar to the above and the web interface loads, congratulations,
|
If you see a line similar to the above and the web interface loads, congratulations,
|
||||||
you are now using an external database server for your TubeSync data!
|
you are now using an external database server for your TubeSync data!
|
||||||
|
|
||||||
|
## Database Compression (For MariaDB)
|
||||||
|
With a lot of media files the `sync_media` table grows in size quickly.
|
||||||
|
You can save space using column compression while using MariaDB
|
||||||
|
1. Stop tubesync
|
||||||
|
2. Execute `ALTER TABLE sync_source MODIFY metadata LONGTEXT COMPRESSED;` on database tubesync
|
||||||
|
3. Start tunesync and confirm the connection still works.
|
||||||
|
|
||||||
## Docker Compose
|
## Docker Compose
|
||||||
|
|
||||||
If you're using Docker Compose and simply want to connect to another container with
|
If you're using Docker Compose and simply want to connect to another container with
|
||||||
|
@ -118,6 +125,7 @@ database before it can be written to. This file should contain:
|
||||||
CREATE DATABASE tubesync;
|
CREATE DATABASE tubesync;
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Then it must be mapped to `/docker-entrypoint-initdb.d/init.sql` for it
|
Then it must be mapped to `/docker-entrypoint-initdb.d/init.sql` for it
|
||||||
to be executed on first startup of the container. See the `tubesync-db`
|
to be executed on first startup of the container. See the `tubesync-db`
|
||||||
volume mapping above for how to do this.
|
volume mapping above for how to do this.
|
||||||
|
|
Loading…
Reference in New Issue