I am switching from MongoDB to AWS DocumentDB. However, in MongoDB, I used GridFs to store and retrieve files larger than 16MB. But this is not supported in AWS DocumentDb. Is there any way on how to store or process large files(>16MB) in AWS DocumentDB? Any help or leads would be appreciated. Thanks!
Asked
Active
Viewed 1,437 times
0
-
4Usually you store large objects in S3, and your DB will just have references to them. – Marcin Apr 14 '20 at 12:24
-
It can be convenient and more secure for data governance to have all your assets in the database but for large infrequently accessed assets S3 can definitely be cheaper. – Joe Drumgoole Apr 16 '20 at 13:15
2 Answers
0
GridFS is a client construct and should just work with DocumentDB. However, we do not test it and thus don't officially support it. Did you encounter any issues when using GridFS with DocumentDB?

meet-bhagdev
- 2,608
- 18
- 22
-
Hi, We were able to work just fine using Gridfs with DocumentDB. No issues are observed till date :) – Prakhar Sharma Aug 27 '20 at 07:50
-1
If you switched to MongoDB Atlas which runs very nicely on to of AWS you would still be able to used GridFS to store your files.

Joe Drumgoole
- 1,268
- 9
- 9
-
We are working on MongoDB 3.2 version. We definitely need to upgrade it to atleast to 3.6. Can you suggest if it is feasible to upgrade it to MongoDB Atlas directly? – Prakhar Sharma Apr 15 '20 at 12:21
-
Yes you can use live migration to migrate your database. You will need to check for driver changes before you upgrade. The oldest version supported on Atlas is 3.6. What driver are you using? – Joe Drumgoole Apr 16 '20 at 13:13