Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB without the Database?

Tags:

mongodb

nosql

Is it possible to use MongoDB without the database part? As really for my application what would be ideal is to just keep the database in memory, and not actually require a database server. The use case for this is to pretty much wrap a selector/query engine around a series of documents that only exist in memory temporarily - once the session is over, we can don't care for the documents anymore.

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

like image 961
balupton Avatar asked Jul 25 '26 19:07

balupton


2 Answers

As far as I know that's not possible, but you could easily create a new collection per session and drop it when the session finishes.

like image 116
Chris Fulstow Avatar answered Jul 28 '26 00:07

Chris Fulstow


You could use Memcached.

Here is a side=-by-side comparison of the two

like image 29
Tudor Constantin Avatar answered Jul 27 '26 23:07

Tudor Constantin