• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MongoDB in conjuction with JPA

 
Sai Hegde
security forum advocate
Ranch Hand
Posts: 207
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a project that I am working on, we have requirements where we are supposed to replicate data from DB2 to mongo. Now the object that is returned back from DB2 is about 70M (an eagerly loaded object) with multiple clobs and blobs. While I am looking into GridFS for sharding it before I'd save it to mongo, I wonder if there were any suggested ways of doing this?
 
Rick Copeland
author
Greenhorn
Posts: 17
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose it depends on how you want to use the object once it's in MongoDB. You certainly can choose to just shove everything into a GridFS "file", but you lose query-ability (a GridFS file should be treated like a BLOB would be in a RDBMS).

If the object is over 70MB and you don't want to decompose it structurally, you are going to need to store it in GridFS, since MongoDB documents are limited to 16MB each.

Hope that helps!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic