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:
connected to: 127.0.0.1
C:\mongo\bin>
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 listconnected to: 127.0.0.1
C:\mongo\bin>
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/301743/viewspace-738658/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/301743/viewspace-738658/