今回はMongoDBのGridFSを少しだけ触ってみました。 This allows us to efficiently store large objects, and in the case of especially large files, such as videos, permits range operations (e.g., fetching only the first N bytes of a file). MongoDBはデータをBSONと呼ばれる形式で扱っていますが、一つのBSONオブジェクトに対して16MBの制限(v1.7未満のバージョンだと4MB)があるようです。GridFSはMongoDBに巨大なファイルを格納するための仕様で、公式でも上記引用の通り動画像ファイルなどを扱うことを想定しているので、ここでは動画配信サービスのバックエンドの一部に使えるかどうか考
![MongoDB GridFSについて – Rest Term](https://cdn-ak-scissors.b.st-hatena.com/image/square/185023362ba215663c110241a1af0aeb662d3767/height=288;version=1;width=512/http%3A%2F%2Frest-term.com%2Fwp-content%2Fthemes%2Fsimple-organization%2Fimg%2Fsite_logo.png)