Truly portable, cache Everything.db in ram?

Have a suggestion for "Everything"? Please post it here.
Post Reply
elfor
Posts: 5
Joined: Wed Jun 07, 2017 12:08 pm

Truly portable, cache Everything.db in ram?

Post by elfor »

Hi, long time first time...

Would it be possible, or make sense, to have Everything optionally cache the index data in RAM?
Making it truly portable with such option enabled, as in, no "Everything.db" file would be created!

People have SSDs, 16 or even 32GB ram these days, rebuilding the index is no inconvenience.

Thanks!
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Truly portable, cache Everything.db in ram?

Post by NotNull »

elfor wrote:Hi, long time first time...

Would it be possible, or make sense, to have Everything optionally cache the index data in RAM?
Making it truly portable with such option enabled, as in, no "Everything.db" file would be created!
Thanks!
Everything already loads the database in RAM:
When starting Everything, the database is loaded from disk to RAM; only when you exit Everything, the database is saved to disk.
Loading the database from disk and writing it to disk is very (very!) fast.


If for one reason or another (which I can't think of, btw) you don't want a database on disk, it is possible:

* Place Everything.exe in a folder
* Start Everything
* Configure Everything to your liking
* Exit Everything. This will create an Everything.ini and an Everything.db
* delete Everything.db

That was the straightforward part ... now things get a little more interesting:

* Start Everything with Everything.exe -db "nul"

As Everything doesn't find an existing database, it will create one (in RAM), using the previously defined settings in Everything.ini.

Now, when you exit Everything, it will write it to "nul"
nul is a special file device on Windows; sending a file to nul basically means ignoring the output.
(for the fun of it: try to create a file named nul in explorer or CMD).

Conclusion: no database on disk; mission accomplished :-)


EDIT: Turns out there is already a -nodb option: Everything.exe -nodb That does exactly what you want ...
-nodb

Do not save to or load from the "Everything" database file.
(from: http://www.voidtools.com/support/everyt ... e_options/ )

That's way better than my suggested -db "nul" option! Sorry ....



EDIT2: Now I think of it .... the "nul" option *can* be useful:

Edit Everything.ini and chage the line "db_location=" to:

Code: Select all

db_location=nul
Now you can start Everything.exe without parameters and still not have a database on disk.
elfor
Posts: 5
Joined: Wed Jun 07, 2017 12:08 pm

Re: Truly portable, cache Everything.db in ram?

Post by elfor »

Thank you very much & high five, i didn't expect two solutions! :)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Truly portable, cache Everything.db in ram?

Post by NotNull »

elfor wrote:Thank you very much & high five, i didn't expect two solutions! :)
two for the price of one today! :-)
gmknowles
Posts: 6
Joined: Thu Feb 10, 2022 2:46 pm

Re: Truly portable, cache Everything.db in ram?

Post by gmknowles »

Great thread :D
void
Developer
Posts: 16752
Joined: Fri Oct 16, 2009 11:31 pm

Re: Truly portable, cache Everything.db in ram?

Post by void »

A no_db ini setting is available in Everything 1.5
Post Reply