MongoDB GridFS bucket?

I am working with MongoDB C # Samus driver .

One of the constructors of the MongoDB.GridFS.GridFile class has a "bucket" parameter. When I create a GridFile in Java, for example , an example , I cannot install this “bucket”. But I can install this “bucket” in Java when creating the GridFS object of the Java documentation . I'm confused!

My question is:

What is a bucket? For what? Please tell about some use cases;)

+3
source share
1 answer

Bucket - . bucket "fs", :

  • fs.files , id, name, size, chunk size, md5 checksum ..
  • fs.chunks , , .

GridFS , .

, , , ..

+10

Source: https://habr.com/ru/post/1776321/


All Articles