0
Kristina Chodorow
   OSCON 2009
collection
database
                             logs
              eaters



           fruit
                       pie
name : Burt
home : Kenya
born : Date(“2 years ago”)

                             price : 29.99
                          ...
captain : “Kirk”
    ship : “NCC 1701”
    stardate : 2634.3




space.star.trek.save(obj)
Querying

db.star.trek.find({stardate : {$gt : 1234.0},
$where : function(obj) {
illogicalFunc = function() {/*…*/};
if (i...
Indexes

• Ascending/Descending
• Single/Multiple Key
• Unique/Non-unique
Getting It
$ curl -O
http://downloads.mongodb.org/linux/mongodb-
linux-i686-latest.tgz
$ tar zxvf
http://downloads.mongodb...
JavaScript Shell
$ mongodb-linux-i686-
latest/bin/mongo
url: test
connecting to: test
type “help” for help
>
http://www.mongodb.org
   Google Groups: mongodb-user
     irc.freenode.net#mongodb
     @mongodb, @kchodorow
       krist...
OSCON 2009 Lightning Talk
OSCON 2009 Lightning Talk
OSCON 2009 Lightning Talk
Upcoming SlideShare
Loading in...5
×

OSCON 2009 Lightning Talk

1,309

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,309
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
33
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "OSCON 2009 Lightning Talk"

  1. 1. Kristina Chodorow OSCON 2009
  2. 2. collection
  3. 3. database logs eaters fruit pie
  4. 4. name : Burt home : Kenya born : Date(“2 years ago”) price : 29.99 color : black fromTheSixties : true
  5. 5. captain : “Kirk” ship : “NCC 1701” stardate : 2634.3 space.star.trek.save(obj)
  6. 6. Querying db.star.trek.find({stardate : {$gt : 1234.0}, $where : function(obj) { illogicalFunc = function() {/*…*/}; if (illogicalFunc(obj.spock)) { /* … */ } else { /* … */ } }})
  7. 7. Indexes • Ascending/Descending • Single/Multiple Key • Unique/Non-unique
  8. 8. Getting It $ curl -O http://downloads.mongodb.org/linux/mongodb- linux-i686-latest.tgz $ tar zxvf http://downloads.mongodb.org/linux/mongodb- linux-i686-latest.tgz $ mkdir ~/db $ mongodb-linux-i686-latest/bin/mongod –- dbpath ~/db www..mongodb.org/display/DOCS/Downloads
  9. 9. JavaScript Shell $ mongodb-linux-i686- latest/bin/mongo url: test connecting to: test type “help” for help >
  10. 10. http://www.mongodb.org Google Groups: mongodb-user irc.freenode.net#mongodb @mongodb, @kchodorow kristina@10gen.com http://www.slideshare.net/kchodorow
  1. A particular slide catching your eye?

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

×