Why is the database of a Meteor app that has been run once (and never loaded) taking up nearly 3GB?

前端 未结 4 1726
名媛妹妹
名媛妹妹 2021-01-12 03:05

UPDATE: this was fixed after Meteor v0.4 (2012). For historical purposes:


Excerpt from du:

2890768 ./Code/Meteor/         


        
4条回答
  •  既然无缘
    2021-01-12 04:04

    You can turn off preallocation by passing the --noprealloc arg to mongod. The downside is that there will be pauses each time a new storage file needs to be allocated. Depending on the filesystem you are using (e.g., ext3 vs. ext4), this could result in noticeable latency for a user.

提交回复
热议问题