Skip to content

Commit

Permalink
Merge pull request #443 from depuhitv/patch-1
Browse files Browse the repository at this point in the history
compress sync_media table for mariadb
  • Loading branch information
meeb authored Dec 4, 2023
2 parents 7aa9c0e + 6c9772d commit c159c24
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/other-database-backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ entry in the container or stdout logs:
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!

## 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 using the following steps 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

If you're using Docker Compose and simply want to connect to another container with
Expand Down Expand Up @@ -118,6 +126,7 @@ database before it can be written to. This file should contain:
CREATE DATABASE tubesync;
```


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`
volume mapping above for how to do this.

0 comments on commit c159c24

Please sign in to comment.