Download MongoDB

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
What is MongoDB?
Developed by 10gen
 It is a NoSQL database
 A document-oriented database
 It uses BSON format

The Basics





A MongoDB instance may have zero or more
databases
A database may have zero or more ‘collections’.
A collection may have zero or more ‘documents’.
A document may have one or more ‘fields’.
MongoDB ‘Indexes’ function much like their
RDBMS counterparts.
MongoDB vs. RDBMS
Collection vs. table
 Document vs. row
 Field vs. column
 Collection isn't strict about what goes in it
(it's schema-less)

MongoDB in action…
More actions…
Using MongoDB with Rails
require 'rubygems'
require 'mongo'
source 'http://gemcutter.org'
gem "rails", "3.2.1"
gem "mongo_mapper"
bundle install
Why use MongoDB
Simple queries
 Makes sense with most web applications
 Easier and faster integration of data
 Not well suited for heavy and complex
transactions systems.

Related documents