Advanced Topics(Chapter 7 of MongoDB The Definitive Guild)
2010-10-13 23:02
513 查看
In addition to these basic operations, MongoDB supports a wide range of advanced operations that are implemented as commands. Commands implement allof the functionality that doesn’t fit neatly into “create, read, update, delete.” The command response will always contain the key "ok". If "ok" is true, the command was successful, and if it is false, the command failed for
some reason.
The basic idea behind GridFS is that we can store large files by splitting them up into chunks and storing each chunk as a separate document. Because MongoDB supports storing binary data in documents, we can keep storage overhead for chunks to a minimum.
db.eval is a function that allows you to execute arbitrary JavaScript on the MongoDB server. It takes a string of JavaScript, sends it to MongoDB (which executes it), and returns the result.
some reason.
The basic idea behind GridFS is that we can store large files by splitting them up into chunks and storing each chunk as a separate document. Because MongoDB supports storing binary data in documents, we can keep storage overhead for chunks to a minimum.
db.eval is a function that allows you to execute arbitrary JavaScript on the MongoDB server. It takes a string of JavaScript, sends it to MongoDB (which executes it), and returns the result.
相关文章推荐
- Creating, Updating, and Deleting Documents(Chapter 3 of MongoDB The Definitive Guild)
- Querying(Chapter 4 of MongoDB The Definitive Guild)
- Indexing(Chapter 5 of MongoDB The Definitive Guild)
- Replication(Chapter 10 of MongoDB The Definitive Guild)
- Aggregation(Chapter 6 of MongoDB The Definitive Guild)
- Replication(Chapter 9 of MongoDB The Definitive Guild)
- Administration(Chapter 8 of MongoDB The Definitive Guild)
- MongoDB:The Definitive Guide CHAPTER 2 Getting Started
- 《Hadoop: The Definitive Guide》读书笔记 -- Chapter 2 MapReduce
- Views and URLconfs(The Definitive Guild to Django)
- Objects(Chapter 3 of JavaScript: The Good Parts)
- 【Chapter 1】【Objective】History of the Computer
- Pointers, Arrays, and Structures(Chapter 5 of The C++ Programming Language)
- chapter 2 : The Complexity of Algorithms and the Lower Bounds of Problems
- Algorithm Analysis(Chapter 2 of The Algorithm Design Manual)
- Memory Management(Chapter 3 of iOS Programming: The Big Nerd Ranch Guide)
- 《Hadoop: The Definitive Guide》读书笔记 -- Chapter 3 The Hadoop distributed Filesystem
- MapKit and Text Input(Chapter 5 of iOS Programming: The Big Nerd Ranch Guide)
- MongoDB的内部构造 From 《MongoDB The Definitive Guide》
- MongoDB:The Definitive Guide 2nd笔记之Seeing the Current Operations