Hari
Hari

Reputation: 1

Changing chunk size in MongoDB gridfs using mongofiles utility

We are using MongoDB 3.4 and we are trying to store bulk videos in MongoDB GridFS. We used mongofiles command line utility to load video to the gridfs.

But it chunks the video file with default chunk size 255kb.

Is there any way to change chunk size in the configuration file or while loading a video using mongofiles?

Thanks,
Hari

Upvotes: 0

Views: 712

Answers (1)

JJussi
JJussi

Reputation: 1580

No! When you use Java, PHP,.. driver you can change that. But mongofiles program don't support it.

In the Java driver you'd call setChunkSize on GridFSInputFile.

Upvotes: 0

Related Questions