Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Document Database

Describe NoSQL database and focused on document database

  • Login to see the comments

  • Be the first to like this

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

×