Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDb storage ? #631

Closed
thamer898 opened this issue Feb 24, 2016 · 14 comments
Closed

MongoDb storage ? #631

thamer898 opened this issue Feb 24, 2016 · 14 comments

Comments

@thamer898
Copy link

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 ?

@merowinger92
Copy link
Contributor

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

@thamer898
Copy link
Author

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

@flovilmart
Copy link
Contributor

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.

@thamer898
Copy link
Author

can i integrate dropbox with mongodb storage ?

@flovilmart
Copy link
Contributor

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

PR and contributions are welcome.

@thamer898
Copy link
Author

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

@flovilmart
Copy link
Contributor

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

@thamer898
Copy link
Author

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

@flovilmart
Copy link
Contributor

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.

@thamer898
Copy link
Author

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 ?

@flovilmart
Copy link
Contributor

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.

@thamer898
Copy link
Author

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

@gateway
Copy link

gateway commented Feb 24, 2016

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.

@gfosco
Copy link
Contributor

gfosco commented Feb 26, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants