That's not possible to not use the cache as all find operations do not use the disk. That's also a very big change which I feel is outside of NeDB's scope so I will review a PR if any but I won't do it.
I'm curious as to how a ramdisk can avoid Nodejs' 2GB limitation though, I wouldn't have thought it was possible ?
I was not asking how to make a ramdisk :) I just don't see how you can use it to bypass Node.js' 2GB heap limoitation. In my opinion that's just not possible. We'll have to wait for improvements to the V8
OK. My point is that whatever we do, NeDB's needs the documents to be in memory to perform find operations. There are of course ways to avoid that but it's a lot of work and totally outside of NeDB's scope. If anyone tries it I'll happily review a PR though :)