What is the use of the parameter "- nodb"?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
worm
Posts: 7
Joined: Tue Aug 08, 2023 3:31 am

What is the use of the parameter "- nodb"?

Post by worm »

After carefully studying the command line parameters of everything, I found a "-nodb" that indicates that the "Everything" database is not saved or loaded. After actual use, I found that the file "Everything.db" will not be generated in the directory, but it does not seem to be missing in terms of functionality? What is the use of this parameter? Is it possible to increase operating speed? Or using an increase in memory? Or is the index slowing down?
horst.epp
Posts: 1449
Joined: Fri Apr 04, 2014 3:24 pm

Re: What is the use of the parameter "- nodb"?

Post by horst.epp »

There is no benefit in speed or anything else.
The operation is in RAM as always, but no DB is written or read.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: What is the use of the parameter "- nodb"?

Post by NotNull »

Using the -nodb parameter will indeed prevent Everything from saving the database to disk when exiting (the database is in memory during operation).

This means that the next time Everything will be started, it will have to build the entire database from scratch. That can take some time, especially if network drives are involved.

Without the -nodb parameter, Everything can load the database from disk when started and just check for updated entries, which is done quite efficient.


So functionality-wise there is not much difference: both create a database in RAM; one from scratch, the other one using a base-level.
If you want to keep off-line drives in the index -- external drives come to mind -- you will need to save the database to disk as that information is unavailable otherwise.


The -nodb parameter is useful for testing (everything.exe -instance "TEST" -nodb) without creating databases all over the place.
Can also be used for special cases ( IndexThis for example )
worm
Posts: 7
Joined: Tue Aug 08, 2023 3:31 am

Re: What is the use of the parameter "- nodb"?

Post by worm »

Thank you both for your answers~
Post Reply