Sunday, 15 January 2012

Meteor mongodb file size too big -



Meteor mongodb file size too big -

i starting meteor creating test/practice apps. after have created app , run it, .meteor folder size baloons 500 mb. each practice app adds 500 mb or working folder.

i not playing huge info sets on anything, database less 10 mb.

as sync work folder laptop, major pain up. how can cut down size of default mongodb while creating practice app backing or folder sync

also when re-create whole app folder new location, not run, because database stored somewhere else.

can save database same folder app, copying folder on enable me go on working on laptop well?

sorry if question noobish.

thanks time.

meteor reset >>> deletes database. want able preserve it.

yes, can pain , unavoidable default @ present. however, couple of ideas might useful:

if have multiple meteor apps, it's possible utilize same db each, per @elfoslav: link. however, note have supply env variable every time or create shell script when start meteor, otherwise it'll create new db if run meteor on own once! if it's portability of app you're concerned about, comfortable mongodump , mongorestore, yield bson files containing database contents (i.e. 10mb) pretty easy insert instance of mongodb, have re-create these backwards , forwards. here guide doing meteor db, , here great gist @olizilla.

meteor

No comments:

Post a Comment