0

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!

  • 4
    Usually 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 Answers2

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
-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