Spring Data MongoDB支援GridFS

jieforest發表於2012-07-30
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部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-738658/,如需轉載,請註明出處,否則將追究法律責任。

相關文章