Your SlideShare is downloading. ×
0
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Introducing Mongo DB and setting up Adobe AEM6 with mongo
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Introducing Mongo DB and setting up Adobe AEM6 with mongo

2,218

Published on

Presented at Adobe, Bangalore - Introducing NOSQL DB, Mongo DB and setting up Mongo with Adobe AEM 6

Presented at Adobe, Bangalore - Introducing NOSQL DB, Mongo DB and setting up Mongo with Adobe AEM 6

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

No Downloads
Views
Total Views
2,218
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
81
Comments
0
Likes
3
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Running AEM 6 with Mongo DB Yash Mody, PhD CTO | Tekno Point Consulting
  • 2. Introduction The NoSQL-ness of Databases Non Relational, non row-wise database Its been around for ages (embedded devices, mainframes) Cannot solve scalability issues Flexibility like: Nested Values, Non Standardized Fields www.teknopoint.us  
  • 3. Types of No SQl database Document Store XML,JSON.. Collections or Documents Key Value Store Big Table / Tabular (Google Prop Implementation) Graph DB Data represented by series of interconnected nodes (road intersections) Object DB OOPL www.teknopoint.us  
  • 4. CAP THeorem Consistency – All users see the same data Availability – All users can read and write at all times Partition Tolerance – works when divided across network www.teknopoint.us  
  • 5. Mongo DB Fundamentals Document Database Uses JavaScript :-* Not queried over HTTP Native drivers for each language (no n/w overhead) Only master-slave replication Consistent, Partition Tolerant Sharding using defined keys www.teknopoint.us  
  • 6. Organization and querying Documents Collections Records JavaScript based Querying and allows define map- reduce functions www.teknopoint.us  
  • 7. Setting up mongo Install Mongo Setup data location /Users/yash/Desktop/TRAININGS/MONGODB/test/data/db default is /data/db Start Mongo mongod --dbpath <path to data directory> Start Mongo Shell in data-dir- $mongo www.teknopoint.us  
  • 8. FIRST MONGO Database Creating a DB show dbs use testdbs Creating Records r1 = { name : ”Adobe" } r2 = { strength : 3000 } Adding Records to collections db.orgData.insert( r1 ) db.orgData.insert( r2) db.orgData.insert( {name: “Apple”, strength: 5000}) www.teknopoint.us  
  • 9. Retrieving info db. orgData.find() Pass key-value for exact match: db. orgData.find({strength:3000}) Using a cursor : var c = db. orgData.find() Use the cursor as an array Note: Data can be generated using standard js mechanisms for (var i = 1; i <= 25; i++) db. orgData.insert( { e-code : i } ) www.teknopoint.us  
  • 10. Querying data $lt,  $gt,  $in   www.teknopoint.us  
  • 11. Mongo DB tools MongoDB Management Service (MMS) Fang Umongo MongoHub MongoVision Mviewer Meclipse www.teknopoint.us  
  • 12. Mongo in AEM Runs with Mongo 2.6.x Install and set mongod.cfg ensure dbpath exists Unpack AEM 6 and change the start.bat runmode “author,crx3mongo” jvm opts “-Doak.mongo.uri=mongodb://localhost:27017” Run AEM using start.bat www.teknopoint.us  
  • 13. Thanks @yash_mody http://www.linkedin.com/in/modyyash www.teknopoint.us  

×