Skip to content

Commit e1fbd1a

Browse files
committed
you're doing great
2 parents 7958270 + e65e552 commit e1fbd1a

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

046_mongodb/00_about-nosql/README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SQL doesn't scale well.
1212

1313
Scales well, however, it is eventual consistent.
1414

15-
FYI: NoSQL can also be thought of a schemaless. You do not define any schema. There is no defining that a table is this way or that way. There is no defining that tables are connected in different ways. With SQL, the schema is imposed by the RDBMS. With schemaless nosql, the schema needs to be imposed by the developer; the developer needs to make it all work.
15+
FYI: NoSQL can also be thought of a **schemaless**. You do not define any schema. There is no defining that a table is this way or that way. There is no defining that tables are connected in different ways. With SQL, the schema is imposed by the RDBMS. With schemaless nosql, the schema needs to be imposed by the developer; the developer needs to make it all work.
1616

1717
## Types
1818

@@ -27,25 +27,23 @@ You can use KV dbs for memcache, tracking transient data, large object storage.
2727
![key value](images/dbtype-kv.png)
2828
[source: www.3pillarglobal.com](http://www.3pillarglobal.com/insights/exploring-the-different-types-of-nosql-databases)
2929

30-
Examples:
31-
1. Redis
32-
1. Riak
30+
Examples: Redis, Riak
3331

3432
### Document
3533

3634
Like a key-value store but the value has greater structure, such as JSON or BSON (binary encoding of JSON).
3735

38-
Denormalizing data is common with document dbs: data this is frequently queried together should be stored together. Example: a blog post would have the blog post, comments, and likes all stored together.
36+
**Denormalizing data is common with document dbs**: data that is frequently queried together should be stored together.
37+
38+
Example: a blog post would have the blog post, comments, and likes all stored together.
3939

4040
Document dbs have indexing and querying capability (you can look data up by more than just the key).
4141

4242
You can use document dbs for web apps, data with variable schema, JSON, denormalized data (structures embedded in structures).
4343

44-
![document store](dbtype-doc.png)
44+
![document store](images/dbtype-doc.png)
4545

46-
Examples:
47-
1. Mongodb
48-
1. couchdb
46+
Examples: Mongodb, couchdb
4947

5048
### Column
5149

@@ -61,10 +59,7 @@ With column nosql, data is stored in columns. This has performance gains.
6159

6260
"Relational databases store all the data in a particular table’s rows together on-disk, making retrieval of a particular row fast. Column-family databases generally serialize all the values of a particular column together on-disk, which makes retrieval of a large amount of a specific attribute fast. This approach lends itself well to aggregate queries and analytics scenarios where you might run range queries over a specific field." [source](http://www.jamesserra.com/archive/2015/04/types-of-nosql-databases/)
6361

64-
Examples:
65-
1. Big Table (google)
66-
1. Cassandra (facebook)
67-
1. HBase
62+
Examples: Big Table (google), Cassandra (facebook), HBase
6863

6964
Use this if you are creating the next facebook social network, the next google search engine, big science, stock market analysis, writing vast amounts of data quickly and being able to query it.
7065

@@ -78,9 +73,9 @@ Stores information about networks such as social relations.
7873

7974
The [world's leading NoSQL database](http://db-engines.com/en/ranking).
8075

81-
![Ranking of DBs](00_images/dbranks.png)
76+
![Ranking of DBs](images/dbranks.png)
8277

83-
## Database --> Collection --> Document
78+
## Mongo --> Database --> Collection --> Document
8479

8580
A nosql database has collections which have documents.
8681
A rdbms database has tables which have records.
@@ -96,7 +91,7 @@ The value is a dynamic schema - it can change from document to document. Documen
9691
| database | database |
9792
| table | collection |
9893
| row | document |
99-
| column | field |
94+
| field | field |
10095
| join | embed |
10196
| primary key | default key _id provided by mongo |
10297

0 commit comments

Comments
 (0)