v4.0.0 #1061
IRHM
announced in
Announcements
v4.0.0
#1061
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Caution
It is always highly recommended that you perform a backup before updating (https://watcharr.app/docs/server_config/backup)!
Note
v4 is finally here! Don't worry about the major version bump, all migrations will be handled automatically when you start the upgraded version.
Have a read of the Data Migrations section below to get an understanding of the migrations we are applying in v4. You'll also notice that on the first start there will be a delay while migrations are applied.
Note
This release contains security fixes. If your server is exposed to the public and you have signing up enabled, you should update sooner rather than later!
Data migrations
This is the first time migrations are taking place when updating Watcharr, please be mindful of that and ensure you have your existing database backed up incase of any errors.
Backfilling
playsdata from users Activity.This migration was added so that existing data could be used to fill out how many plays of your media you have. It can't be 100% accurate because it has to make some assumptions, but it can get close and saves you a lot of time.
Dropping
deleted_atcolumns forwatched_seasonsandwatched_episodestables since we do not use them.I noticed that queries (eg for loading your main list) would take an extra ~100ms because we were adding a
deleted_at IS NULLto them when getting watched seasons/episodes. We don't use the deleted_at column, so I have just removed it from the tables (and queries so we have the speed boost).Moving to using WAL journal_mode for our sqlite database, which will grant us improvements in all areas.
Most database operations will be much faster now and more concurrent use of the database is now possible.
Important Note About Backups
You will notice that the database now comprises of three files:
watcharr.db(which has always been there) andwatcharr.db-wal,watcharr.db-shm(which are new).If you backup your database by copying the .db file (while your server is stopped of course), you should also copy the
watcharr.db-walfile since it can contain database content. You can ignore thewatcharr.db-shmfile if you want.Added
CountAsPlayproperty for tracking media total plays (this will speed up counting plays since we'll no longer rely on text searches in the db).0plays when they already have data we can use to get their total plays.Playsin WatchedDto where used.playscount for media inMyReviewcomponent.Changed
Fixed
imagepackage a lot more robust (thanks [@4qu4r1um]).Removed
deleted_atcolumns for watched episode/season tables.AddActivity(POST /activity) endpoint (Thanks [@Dredsen] for pointing out the flaw).Documentation
watcharr.db-walshould be backed up along with the .db file since v3.New Contributors
🆘 Getting Help
If you need help, encounter an issue or find a bug please create an issue or join our space on Matrix for support. Always happy to help!
Etc
This discussion was created from the release v4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions