Tomas Romero
Tomas Romero

Reputation: 8708

Does MeteorJS Mini Mongo use disk? or just memory?

I would like to know if MeteorJS's mini mongo (just to be clear, on the client) retrieves its data from memory (RAM) of from disk (maybe local storage). Also if it write to disk the objects received. I'm concerned about performance (and app responsiveness).

Upvotes: 2

Views: 354

Answers (2)

imslavko
imslavko

Reputation: 6676

It is all in-memory. Thus very fast and recreated on every complete app reload.

Sometimes you want more persistent behavior and this is where packages come into place. An example of what you can do can be demonstrated in ground:db package. This package lacks good conflict resolution but one can imagine building an advanced version of it.

Upvotes: 4

kraf
kraf

Reputation: 1309

It is entirely memory based. Afaik there is no caching in localStorage but even if there were, current implementations only allow for about 5 MB of storage per domain, which would therefore only ever be used for faster startup.

Web applications don't have access to disk in general due to security issues.

Upvotes: 2

Related Questions