开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜