tritonmc / Triton

Translate your server! Sends the same message in different languages... Hooks into all plugins!
https://triton.rexcantor64.com
GNU General Public License v3.0
85 stars 34 forks source link

Percieved data loss when reloading and MySQL fails #437

Open diogotcorreia opened 3 months ago

diogotcorreia commented 3 months ago

If Triton is configured to use MySQL and Triton is reloaded (e.g., through /triton reload), it will fallback to local storage if it can't connect to the database. This makes it seem like all translations are gone.

This problem is exacerbated with the fact that if you download from TWIN after that, those translations will be saved to local storage instead and create two distinct storages.

There are a few things can be improved here:

NaysKutzu commented 3 months ago

I mean when you use MySQL you can like download the hole database as a cache on a local file and then serve that file till a change was made to the database :Ö))

NaysKutzu commented 3 months ago

Or when uploading you can do the same thing create a local database and serve that :) and just slowly upload the db to host :)

diogotcorreia commented 3 months ago

That kinda defeats the purpose of a database in the first place :sweat_smile: And it's likely that most of your server will not work if the database is down anyway, so it shouldn't matter if Triton stops itself or something similar

NaysKutzu commented 3 months ago

Ik but that how most web app's do just save cache and server cache till some change :)