Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
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 ?
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 :)