Interactively load .db from disk into RAM & restore Session?

Discussion related to "Everything" 1.5.
Post Reply
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Interactively load .db from disk into RAM & restore Session?

Post by therube »

(Not all that important, but, & if it doesn't exist already, maybe...)

Interactively load .db from disk into RAM & restore Session?


---


Is there a way to interactively load .db from disk ?
(Such that disk copy replaces the in memory copy.)

Everything.exe -instance MULE -load-db
(loads Everything-MULE.db from disk, into memory)


(Reminds me of sexe.
Save Edit, eXectute Edit - which saves file to disk, then (automatically) re-edits the same file.
[Pretty sure that is what it was, TI-DX10.])


---


Is there a way to load Session Store (Restore Previous Session)
without specifically setting, session_store_restore_on_first_new_window=1 ?

Everything.exe -instance MULE -restore-previous-session
(restores previous session, even if the above Preference is not set)


---


A work-around that works:

Code: Select all

Everything.exe -instance 15 -save-db
sleep 3
gecho -n -e \a
COPY /y "Everything-15.db"        "C:\DEV\Locate\MULE\Everything-MULE.db"

cmd /c start .\everything.exe -instance MULE -read-only -restart
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Interactively load .db from disk into RAM & restore Session?

Post by void »

Once the database is loaded, it cannot be loaded again.
A different database cannot be loaded.
You cannot dynamically change the database.

You can open a .db file as a file list under File -> Open File List.

-or-

Just launch Everything in a new instance with -db <everything.db> and -readonly:

Code: Select all

Everything.exe -instance TEMP -readonly -db Everything-MULE.db

Is there a way to load Session Store (Restore Previous Session)
without specifically setting, session_store_restore_on_first_new_window=1 ?
History -> Restore Previous Session

-or-

/restore-session <session.json> search command.

-or-

-restore-session <session.json> command line option.
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: Interactively load .db from disk into RAM & restore Session?

Post by therube »

In my case, I'm using multiple instances, with MULE being a -read-only,
& MULE gets its' database from -instance 15,
such that if I overwrite MULE.db with a copied 15.db (which does work)
& then -restart -instance MULE,
I've effectively "renewed" MULE's .db (hence in-memory .db) as of the last -save-db of -instance 15
such that MULE is then "current" (if you will, as of MULE.db's date).
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: Interactively load .db from disk into RAM & restore Session?

Post by therube »

-restore-previous-session.

heh, so it wasn't in Help, so didn't realize it was already there.
(though i did happen to use that very same string in my example, above, by chance)
& looking after the fact, in Everything.exe itself, I do find:
restore-previous-session, & had i looked first, could have surmised the answer ;-).
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: Interactively load .db from disk into RAM & restore Session?

Post by therube »

-restore-previous-session & -restart.

So if you use -restart, that overrides -restore-previous-session.
If it didn't, I could just use the pair in my .bat file.
As it is, I'll just keep, session_store_restore_on_first_new_window=1
& that work.


-db.

Cause of the way I'm going about things, no need for
-db <everything.db> nor File -> Open File List.
Post Reply