ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Spring Data MongoDB支持GridFS

Spring Data MongoDB支持GridFS

原创 Linux操作系统 作者:jieforest 时间:2012-07-30 13:11:51 0 删除 编辑
MongoDB

MongoDB is a highly scalable, document oriented NoSQL datastore from 10gen. For more information have a look at the MongoDB homepage: http://www.mongodb.org. A short introduction to MongoDB can be found at this blog post.

GridFS

In MongoDB the size of a single record (i.e. a JSON document) is limited to 16 MB. If you want to store and query bigger binary data than that, you have to use the GridFS API of your MongoDB driver. There is also a mongofiles command line tool in thebin folder of your MongoDB installation. We will use that for our examples. In an empty database, there are no GridFS files:

CODE:

C:\mongo\bin>mongofiles list
connected to: 127.0.0.1

C:\mongo\bin>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/301743/viewspace-738658/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-04-23

  • 博文量
    441
  • 访问量
    602348