2

我想知道 MeteorJS mini mongo(为了清楚起见,在客户端)是否从内存(RAM)或磁盘(可能是本地存储)中检索其数据。此外,如果它将收到的对象写入磁盘。我担心性能(和应用程序响应能力)。

4

2 回答 2

4

这一切都在内存中。因此在每次完整的应用程序重新加载时非常快速并重新创建。

有时你想要更持久的行为,这就是包到位的地方。你可以做的一个例子可以在ground:db包中演示。该软件包缺乏良好的冲突解决方案,但可以想象构建它的高级版本。

于 2014-11-01T19:38:45.003 回答
2

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.

于 2014-11-01T18:40:57.040 回答