Nihlus / Crystite

Custom headless server for the VR sandbox Resonite
GNU Affero General Public License v3.0
27 stars 4 forks source link

Feature: Database repair/cleanup options #11

Open uyjulian opened 5 months ago

uyjulian commented 5 months ago

Add an option to periodically cleanup/reset the litedb database on certain conditions. The ones I mostly care about are on startup, on repair flag set (due to database corruption detected on runtime).

Nihlus commented 5 months ago

Could you give any specific examples of the conditions under which you'd need to repair the database? It's not something that's generally doable while the server is online and requires a restart either way, so I'm curious if we can solve your problems some other way.

uyjulian commented 4 months ago

I'm not really concerned about repairing the database, but more detecting the condition that the database is corrupted and automatically deleting it.

This is mainly prompted by constant LiteDB error spews on my instance