Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

A few questions on MongoDB

on

  • 1,296 views

 

Statistics

Views

Total Views
1,296
Views on SlideShare
1,284
Embed Views
12

Actions

Likes
0
Downloads
3
Comments
0

2 Embeds 12

http://iprug.org 10
http://lanyrd.com 2

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

A few questions on MongoDB A few questions on MongoDB Presentation Transcript

  • @ IPRUG What is mongoDB?
  • @ IPRUG What is a Document Oriented Database?
  • @ IPRUG {"IPRUG": { "tagline": "The source of all things Ruby in Suffolk", "website": "http://www.iprug.org", "members": [ {"name": "MrJaba", "role": "foolhardy organizer", "presentations" : ["higher order ruby", "websockets"]}, {"name": "KerryB", "role": "foolhardy presenter"} ] } } A Document
  • @ IPRUG How do you use it? Part 1.
  • @ IPRUG How do you use it? Part 2. 1. Connect: db = Mongo::Connection.new.db("mydb") 2. Insert a document: coll = db.collection("RUGS") iprug = { "IPRUG" => {"tagline" => "The source of all things Ruby in Suffolk", "website" => "iprug.org" } } coll.insert(iprug)
  • @ IPRUG How do you use it? Part 3. 3. Updating: iprug["tagline"] = "Suffolk haz Ruby!" coll.update({"_id" => iprug["_id"]}, iprug)
  • @ IPRUG How do you use it? Part 4. 4. Find all: coll.find() 5. Conditions: coll.find("tagline" => "Suffolk haz Ruby!") 6. Range Queries: coll.find("value" => {"$gt" => 20, "$lte" => 30}) 7. Regex queries: coll.find( {"tagline" => /^Suffolk/} )
  • @ IPRUG ORM Tools? * MongoMapper * Mongoid * Mongomatic * MongoDoc * MongoModel * Candy
  • @ IPRUG Is it In Memory?
  • @ IPRUG Can it be written to disk?
  • @ IPRUG What if my server crashes?
  • @ IPRUG So I'm going to lose all my data?
  • @ IPRUG What about Replication?
  • @ IPRUG What about Performance?
  • @ IPRUG Why would I use this over MySql?
  • @ IPRUG Why Wouldn't I use MongoDb?
  • @ IPRUG References Durability : http://www.mikealrogers.com/2010/07/mongodb-performance-durability/ Their Rebuttal: http://blog.mongodb.org/post/381927266/what-about-durability Durability Guide: http://www.thebuzzmedia.com/mongodb-single-server-data-durability-guide/ Performance: http://www.eggheadcafe.com/tutorials/aspnet/6f573869-c8eb-40c3-9946-2f61e0163966/mongodb-vs-sql-server-basic-speed-tests.aspx http://prajwal-tuladhar.net.np/2009/11/15/500/mongodbs-performance-as-compared-to-others-esp-couchdb/ NoSQL Overview: http://bjclark.me/2009/08/nosql-if-only-it-was-that-easy/