일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- TensorFlow
- TigerGraph
- SQL
- DeepLearning
- RStudio
- 분산 병렬 처리
- 딥러닝
- spark
- RDD
- 그래프 에코시스템
- graph database
- 그래프 질의언어
- 그래프
- Python
- Cypher
- BigData
- GSQL
- 인공지능
- Neo4j
- 빅데이터
- SparkML
- GraphX
- 연합학습
- Graph Tech
- Graph Ecosystem
- GDB
- graph
- r
- Federated Learning
- 그래프 데이터베이스
- Today
- Total
Hee'World
MongoDB CRUD Intorduction 본문
MongoDB CRUD Introduction¶
MongoDB stores data in the form of documents, which are JSON-like field and value pairs. Documents are analogous to structures in programming languages that associate keys with values, where keys may nest other pairs of keys and values (e.g. dictionaries, hashes, maps, and associative arrays). Formally, MongoDB documents are BSON documents, which is a binary representation of JSON with additional type information. For more information, see Documents.

A MongoDB document.
MongoDB stores all documents in collections. A collection is a group of related documents that have a set of shared common indexes. Collections are analogous to a table in relational databases.

A collection of MongoDB documents.
Database Operations¶
Query¶
In MongoDB a query targets a specific collection of documents. Queries specify criteria, or conditions, that identify the documents that MongoDB returns to the clients. A query may include a projection that specifies the fields from the matching documents to return. You can optionally modify queries to impose limits, skips, and sort orders.
In the following diagram, the query process specifies a query criteria and a sort modifier:

The stages of a MongoDB query with a query criteria and a sort modifier.
Data Modification¶
Data modification refers to operations that create, update, or delete data. In MongoDB, these operations modify the data of a single collection. For the update and delete operations, you can specify the criteria to select the documents to update or remove.
In the following diagram, the insert operation adds a new document to the users collection.

The stages of a MongoDB insert operation.
- http://docs.mongodb.org/manual/core/crud-introduction/ -
'BigData > MongoDB' 카테고리의 다른 글
MySQL Query를 MongoDB 쿼리로.... (0) | 2013.11.29 |
---|---|
MongoDB query & mySql query (0) | 2013.11.29 |
[1004jonghee]SQL to MongoDB Mapping (0) | 2013.08.29 |
[1004jonghee]Sharding & ReplicaSet 구성(4대의 머신) (0) | 2013.07.12 |
[1004jonghee]MongoDB 설치 (0) | 2013.07.08 |