This may be a noob question, sorry! I know that the OS uses caching and other tricks, but let's ignore it for the sake of this question.
I was wondering whether any time I query my liteDB instance does it access the disk? Or is the liteDB instance loaded from disk to memory only once upon initialization, and any subsequent read queries access only the memory (ignoring writes here).
The reason I thought about this question is that I have to search my DB with every click of the mouse. If indeed every query has to access the disk, it might be best to just load my DB into some enumerable once, and any subsequent clicks would access the enumerable instead of the DB.
Also, assuming there is disk access every time, would caching and other OS tricks suffice for me to not avoid this search every click?