GridFS random access
Is it possible to have random access for reads and writes in开发者_C百科 mongo?
It's possible to have random access with document (chunk) granularity (it's 256k by default). You can read/write these blocks independently.
Yes. MongoDB allows reading and writing of documents (and thus files) in any order.
GridFS file metadata and chunks are stored in regular collections (usually called fs.files and fs.chunks). At a very low level you could read and write these documents yourself if you wanted too. Some drivers provide a stream like interface to GridFS files, including random access. Which driver are you using?
精彩评论