MongoDB without a database?

Is it possible to use MongoDB without a database part? As with my application, it would be ideal to just keep the database in memory and not really require a database server. A use case for this is to pretty much wrap the selection / query mechanism around a series of documents that only exist temporarily in memory — after the session is over, we can no longer take care of the documents.

Thanks guys, the application is in Node.js. If MongoDB cannot do this, do you have any recommendations?

+3
source share
4 answers

You can try starting MongoDB with the following option, which actually stops it from flushing data to disk. Of course, if you don't have enough RAM, the OS may decide to do just that.

--syncdelay 0
+1
source

As far as I know, this is not possible, but you can easily create a new collection per session and discard it when the session ends.

+2
source

Memcached.

-

+2

MongoDB . Memcached - Memcached... MongoDB RAM- . : , MongoDB... ... , .

0

All Articles