Re: Don't save db on Shutdown

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Spire
Posts: 7
Joined: Thu Dec 15, 2022 1:25 am

Don't save db on Shutdown

Post by Spire »

I have a very large database (about 72 GB). Because of this, I prefer to disable automatic saving and instead do it on demand (using /save-db or /save-db-now). So I've set both db_auto_save_on_close and db_save_on_exit to 0.

This correctly prevents Everything from saving the database when I close an Everything window or explicitly exit the application. However, it doesn't prevent Everything from saving the database when I shut down or restart the computer. My database is on a network share and takes about ten minutes to save, so whenever I try to shut down or restart the OS, the shutdown process eventually times out and I'm left on the logon screen.

Is this by design? If so, would you consider adding a db_save_on_shutdown setting so that it can be disabled?

[Edit: Fixed typo.]
Last edited by Spire on Tue Jul 18, 2023 10:23 am, edited 1 time in total.
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Don't save db on Shutdown

Post by void »

Moved from Is there a way to manually store the database without exiting Everything?

I'll make Everything not save the db on shutdown when db_save_on_exit* is disabled and report back here once this is ready for testing.
Thank you for the suggestion.
Last edited by void on Tue Jul 18, 2023 10:43 am, edited 2 times in total.
Reason: *db_auto_save_on_close => db_save_on_exit
Spire
Posts: 7
Joined: Thu Dec 15, 2022 1:25 am

Re: Don't save db on Shutdown

Post by Spire »

Thank you very much!

But if you'd rather not add a separate setting for this, wouldn't it make more sense if it were tied to db_save_on_exit rather than to db_save_on_close? After all, when you shut down the computer, the entire app exits.
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Don't save db on Shutdown

Post by void »

Yes, I meant db_save_on_exit.
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: Don't save db on Shutdown

Post by void »

Everything 1.5.0.1353a will no longer save the database to disk on Windows shutdown when db_save_on_exit is disabled.
Spire
Posts: 7
Joined: Thu Dec 15, 2022 1:25 am

Re: Don't save db on Shutdown

Post by Spire »

Fix confirmed. Thank you very much!
Post Reply