1 / 7

What is MongoDB?

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’.

webb
Télécharger la présentation

What is MongoDB?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is MongoDB? • Developed by 10gen • It is a NoSQL database • A document-oriented database • It uses BSON format

  2. 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.

  3. 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)

  4. MongoDB in action…

  5. More actions…

  6. Using MongoDB with Rails require 'rubygems' require 'mongo' source 'http://gemcutter.org' gem "rails", "3.2.1" gem "mongo_mapper" bundle install

  7. 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.

More Related