MongoDB - Introduction to MongoDB, Databases and Collections
摘要:MongoDB stores BSON documents, i.e. data records, in collections; the collections in databases. Databases In MongoDB, databases hold collections of do
阅读全文
posted @
2016-12-08 17:01
huey2672
阅读(407)
推荐(0)
MongoDB - MongoDB CRUD Operations, Bulk Write Operations
摘要:Overview MongoDB provides clients the ability to perform write operations in bulk. Bulk write operations affect a singlecollection. MongoDB allows app
阅读全文
posted @
2016-12-05 11:34
huey2672
阅读(659)
推荐(0)
MongoDB - MongoDB CRUD Operations, Delete Documents
摘要:Delete Methods MongoDB provides the following methods to delete documents of a collection: Delete at most a single document that match a specified fil
阅读全文
posted @
2016-12-05 10:39
huey2672
阅读(951)
推荐(0)
MongoDB - MongoDB CRUD Operations, Insert Documents
摘要:MongoDB provides the following methods for inserting documents into a collection: db.collection.insertOne() db.collection.insertMany() db.collection.i
阅读全文
posted @
2016-12-05 10:01
huey2672
阅读(400)
推荐(0)
MongoDB - MongoDB CRUD Operations, Update Documents
摘要:Update Methods MongoDB provides the following methods for updating documents in a collection: Updates at most a single document that match a specified
阅读全文
posted @
2016-12-01 21:12
huey2672
阅读(731)
推荐(0)
MongoDB - MongoDB CRUD Operations, Query Documents, Iterate a Cursor in the mongo Shell
摘要:The db.collection.find() method returns a cursor. To access the documents, you need to iterate the cursor. However, in the mongo shell, if the returne
阅读全文
posted @
2016-12-01 06:43
huey2672
阅读(382)
推荐(0)
MongoDB - MongoDB CRUD Operations, Query Documents, Query for Null or Missing Fields
摘要:Different query operators in MongoDB treat null values differently. The examples on this page use the db.collection.find() method in the mongo shell.
阅读全文
posted @
2016-12-01 06:13
huey2672
阅读(192)
推荐(0)
MongoDB - MongoDB CRUD Operations, Query Documents, Project Fields to Return from Query
摘要:By default, queries in MongoDB return all fields in matching documents. To limit the amount of data that MongoDB sends to applications, you can includ
阅读全文
posted @
2016-12-01 05:56
huey2672
阅读(366)
推荐(0)
MongoDB - MongoDB CRUD Operations, Query Documents
摘要:Query Method MongoDB provides the db.collection.find() method to read documents from a collection. The db.collection.find() method returns a cursor to
阅读全文
posted @
2016-12-01 05:31
huey2672
阅读(344)
推荐(0)
MongoDB - MongoDB CRUD Operations
摘要:CRUD operations create, read, update, and delete documents. Create Operations Create or insert operations add new documents to a collection. If the co
阅读全文
posted @
2016-12-01 03:05
huey2672
阅读(252)
推荐(0)
MongoDB - The mongo Shell, mongo Shell Quick Reference
摘要:mongo Shell Command History You can retrieve previous commands issued in the mongo shell with the up and down arrow keys. Command history is stored in
阅读全文
posted @
2016-12-01 02:14
huey2672
阅读(288)
推荐(0)
MongoDB - The mongo Shell, Write Scripts for the mongo Shell
摘要:You can write scripts for the mongo shell in JavaScript that manipulate data in MongoDB or perform administrative operation. For more information abou
阅读全文
posted @
2016-12-01 00:35
huey2672
阅读(441)
推荐(0)
MongoDB - The mongo Shell, Access the mongo Shell Help
摘要:In addition to the documentation in the MongoDB Manual, the mongo shell provides some additional information in its “online” help system. This documen
阅读全文
posted @
2016-12-01 00:02
huey2672
阅读(222)
推荐(0)
MongoDB - The mongo Shell, Configure the mongo Shell
摘要:Customize the Prompt You may modify the content of the prompt by setting the variable prompt in the mongo shell. The promptvariable can hold strings a
阅读全文
posted @
2016-11-30 23:46
huey2672
阅读(315)
推荐(0)
MongoDB - Introduction of the mongo Shell
摘要:Introduction The mongo shell is an interactive JavaScript interface to MongoDB. You can use the mongo shell to query and update data as well as perfor
阅读全文
posted @
2016-11-30 23:08
huey2672
阅读(367)
推荐(0)
MongoDB - Introduction to MongoDB, MongoDB Extended JSON
摘要:JSON can only represent a subset of the types supported by BSON. To preserve type information, MongoDB adds the following extensions to the JSON forma
阅读全文
posted @
2016-11-30 20:08
huey2672
阅读(881)
推荐(0)
MongoDB - Introduction to MongoDB, BSON Types
摘要:BSON is a binary serialization format used to store documents and make remote procedure calls in MongoDB. The BSON specification is located at bsonspe
阅读全文
posted @
2016-11-30 17:14
huey2672
阅读(326)
推荐(0)
MongoDB - Introduction to MongoDB, Documents
摘要:MongoDB stores data records as BSON documents. BSON is a binary representation of JSON documents, though it contains more data types than JSON. For th
阅读全文
posted @
2016-11-30 15:28
huey2672
阅读(239)
推荐(0)
MongoDB - Introduction to MongoDB, Capped Collections
摘要:Overview Capped collections are fixed-size collections that support high-throughput operations that insert and retrieve documents based on insertion o
阅读全文
posted @
2016-11-30 13:34
huey2672
阅读(324)
推荐(0)
MongoDB - Installing MongoDB on Linux
摘要:1. 下载最新稳定版本的安装包。 2. 解压安装包。 3. 设置环境变量。 4. 创建数据目录。 5. 启动服务。 6. 运行 MongoDB Shell
阅读全文
posted @
2016-11-30 11:13
huey2672
阅读(269)
推荐(0)