Home  >  Q&A  >  body text

mongodb gridfs中多个文件能存在一个chunk中么?

mongodb gridfs中多个文件能存在一个chunk中么? mongodb适合存抓下来的网页文件么?

迷茫迷茫2711 days ago666

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-24 09:13:07

    Each file stored in MongoDB's GridFS will be divided into 1 or more chunks (note that it is a GridFS chunk, not a sharded chunk). A chunk can only belong to one file. So the answer is no. Don't know why you want to do this?

    The description of the second question is not clear enough. Any database can be used for storage. It depends on the usage of your application. Does it require version control? Does it need to be updated frequently? What is the ratio of reads and writes and the amount of concurrency? Wait

    reply
    0
  • Cancelreply