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!
Truly portable, cache Everything.db in ram?
Re: Truly portable, cache Everything.db in ram?
Everything already loads the database in RAM: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!
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 ...
(from: http://www.voidtools.com/support/everyt ... e_options/ )-nodb
Do not save to or load from the "Everything" database file.
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
Re: Truly portable, cache Everything.db in ram?
Thank you very much & high five, i didn't expect two solutions!
Re: Truly portable, cache Everything.db in ram?
two for the price of one today!elfor wrote:Thank you very much & high five, i didn't expect two solutions!
Re: Truly portable, cache Everything.db in ram?
Great thread
Re: Truly portable, cache Everything.db in ram?
A no_db ini setting is available in Everything 1.5