How to save 1,000,000 web pages with css, js, img files in mongodb + gridfs? How to determine the connection between a page and html files?
See here for common sql -> mongodb: http://www.mongodb.org/display/DOCS/SQL+to+Mongo+Mapping+Chart
And embedding and binding specifically: http://www.mongodb.org/display/DOCS/Schema+Design#SchemaDesign-EmbeddingandLinking
You can also apply this to GridFS.
GridFS , . , , "" , , , - , , ..
GridFS: http://www.mongodb.org/display/DOCS/GridFS+Specification
(, _id).