Distributed Database
Document Database
What’s Document
• Documents are the main concept in document databases.
• A document in a document database is simply an e...
Designing Document Database
• Modeling Data as Documents
• JSON, BSON, XML …
• Denormalizing Documents and Embedding Data
...
Materialized Views
Oracle vs MongoDB
Features
• Consistency
• Replica Set
• Transaction
• Availability
• Query
• Scaling
Replica Set
Suitable Use Case
• Event Logging
• Content Management Systems, Blogging Platforms
• Web Analytics or Real-Time Analytics
...
When Not to Use
• Complex Transactions Spanning Different Operations
• Queries against Varying Aggregate Structure
Sample Document
• {
"firstname": "Pramod",
"citiesvisited": [ "Chicago", "London", "Pune", "Bangalore" ],
"addresses": [
{...
Popular Document Database
• MongoDB
• CouchDB
• Terrastore
• OrientDB
• RavenDB
Sample Case – Product Catalog
Sample Case – Order History
Sample Architecture
MongoDB
MongoDB Tools
• mongo, mongod
• mongoimport, mongoexport
• Export and import data as JSON or CSV
• mongodump, mongorestore...
Upcoming SlideShare
Loading in...5
×

Document Database

292

Published on

Describe NoSQL database and focused on document database

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
292
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Document Database

  1. 1. Distributed Database Document Database
  2. 2. What’s Document • Documents are the main concept in document databases. • A document in a document database is simply an entity that contains a collection of named fields • It can be : • XML • JSON • BSON • And so on ..
  3. 3. Designing Document Database • Modeling Data as Documents • JSON, BSON, XML … • Denormalizing Documents and Embedding Data • Normalizing Documents and Referencing Data • Handling Complex Relation • Retrieving Data and Indexing Documents • Summarizing Data by Using Materialized Views
  4. 4. Materialized Views
  5. 5. Oracle vs MongoDB
  6. 6. Features • Consistency • Replica Set • Transaction • Availability • Query • Scaling
  7. 7. Replica Set
  8. 8. Suitable Use Case • Event Logging • Content Management Systems, Blogging Platforms • Web Analytics or Real-Time Analytics • E-Commerce Applications
  9. 9. When Not to Use • Complex Transactions Spanning Different Operations • Queries against Varying Aggregate Structure
  10. 10. Sample Document • { "firstname": "Pramod", "citiesvisited": [ "Chicago", "London", "Pune", "Bangalore" ], "addresses": [ { "state": "AK", "city": "DILLINGHAM", "type": "R" }, { "state": "MH", "city": "PUNE", "type": "R" } ], "lastcity": "Chicago" }
  11. 11. Popular Document Database • MongoDB • CouchDB • Terrastore • OrientDB • RavenDB
  12. 12. Sample Case – Product Catalog
  13. 13. Sample Case – Order History
  14. 14. Sample Architecture
  15. 15. MongoDB
  16. 16. MongoDB Tools • mongo, mongod • mongoimport, mongoexport • Export and import data as JSON or CSV • mongodump, mongorestore, bsondump • Create and restore binary export • mongostat • Overviewing the status of the MongoDB server
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×