Truly spoken! And possibly best for Rk's application. However, I'd
like to remind everyone who might jump to GridFS for every "big
object" solution that regular MongoDB documents can be up to 16Mb in
size, and if your BLOb size isn't going to exceed that, you're better
off using a document collection than using GridFS. Many, if not most,
amateur digital photographs, for example, are smaller than 16Mb, often
much smaller. GridFS is only a last resort when you have data that
exceeds -- or you suspect it may exceed -- the 16Mb limit. 16Mb is a
lot of data, and will serve a lot of needs. Look at your data
realistically before choosing GridFS over a plain old, ho-hum, boring
(but 16Mb big, and much faster) document. :)
In the interest of full disclosure, I have to admit that I didn't
learn any of this through personal experience. I'm paraphrasing from
Kristina Chodorow's great book, _50 Tips and Tricks for MongoDB
Developers_, which I highly, highly recommend.
gs