parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

MongoDb storage ?

Open thamer898 opened this issue 10 years ago • 14 comments

How much MongoDb can store data ? on file system storage is it need any extra hard disk space ? how to handle extra data growth in future ?

thamer898 avatar Feb 24 '16 19:02 thamer898

Use external storage services like : https://mongolab.com

merowinger92 avatar Feb 24 '16 19:02 merowinger92

I have a vps server but i want to know physical path of media files storage ?

thamer898 avatar Feb 24 '16 19:02 thamer898

mongoDB can store as much data as there is room on your VPS hard drive. I don,t think there is much overhead in terms of used space.

flovilmart avatar Feb 24 '16 19:02 flovilmart

can i integrate dropbox with mongodb storage ?

thamer898 avatar Feb 24 '16 19:02 thamer898

You could create a custom FilesAdapter that would use dropbox as a storage.

PR and contributions are welcome.

flovilmart avatar Feb 24 '16 19:02 flovilmart

Thanks @flovilmart i just want to know the physical path of monogo db storage to link it with dropbox

thamer898 avatar Feb 24 '16 19:02 thamer898

the mongodb storage defaults to 'mongodb://localhost:27017/parse'

flovilmart avatar Feb 24 '16 19:02 flovilmart

great @flovilmart then where the files stored in parse folder ?

thamer898 avatar Feb 24 '16 19:02 thamer898

they are stored in the database. notice that the 'mongodb://localhost:27017/parse' is a URL passed to the mongodb driver to connect to the database. Mongodb itself managed the storage of files, I believe those files can't be accessed through the file system.

flovilmart avatar Feb 24 '16 19:02 flovilmart

okay great info i think that mongodb storage can be accessed by file system like Mysql but we should find a way to find physical location ?

thamer898 avatar Feb 24 '16 19:02 thamer898

I'm not sure it's gonna get you anywhere. If you wanna use dropbox, it would be easier to create an adapter for it so all the files are stored to and retrieved from it.

flovilmart avatar Feb 24 '16 19:02 flovilmart

that's hard am not an expert with that i think that will be great if any one can help us with that ?

thamer898 avatar Feb 24 '16 19:02 thamer898

btw if you have a parse app on parse.com you should make sure you have 3-5x more storage, due to compression of data on parse.com .. I would also recommend storing images, files etc into a s3 bucket (its so freaking cheap). Until parse works with MondoDB 3.2 which has WiredTiger in it (compresses your data in the db) you should make sure you have enough room on your server and esp room to grow.

gateway avatar Feb 24 '16 21:02 gateway

We give some guidance in our migration guide: https://github.com/ParsePlatform/parse-server/wiki/Migrating-an-Existing-Parse-App#1-migrate-parse-db-to-self-hosted-mongodb

Most of the available services offer scaling, when you need it.

gfosco avatar Feb 26 '16 11:02 gfosco