Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoDB on Rails

Avatar for parasquid parasquid
January 24, 2013

MongoDB on Rails

Avatar for parasquid

parasquid

January 24, 2013
Tweet

Other Decks in Programming

Transcript

  1. MongoDB on Rails T i p s a n d

    T r i c k s f o r F u n a n d P r o f i t 1 Friday, January 25, 13
  2. Tristan Gomez (parasquid) I co-founded UXMalaysia, help organize KLMUG with

    Mark Smalley, pioneered WebCampKL I’m helping Gem start the local MongoDB user group (ManilaMUG) 3 Friday, January 25, 13
  3. Works at Mindvalley (www.mindvalley.com) System Administrator, Web Designer, Back- end

    Developer, Front-end Developer Primarily Ruby and Rails Some gems: embedify, namecheap 5 Friday, January 25, 13
  4. Different way of thinking about a database Relational: predictable, structured

    data Non-relational: key-value, document, BigTable, graph Foregoes some ACID compliance 7 Friday, January 25, 13
  5. Use the best tool for the job Reputation of “fast”

    -- it depends Buffet vs Menu analogy 9 Friday, January 25, 13
  6. Document store (store anything related to a document) Uses BSON

    (binary JSON) JSON-like MongoDB Interface (http:// docs.mongodb.org/manual/reference/ #mongodb-interface) 11 Friday, January 25, 13
  7. Operational Intelligence (log data, pre- aggregated reports) Product Data Management

    (catalogs, inventory) Content Management Systems (http:// docs.mongodb.org/manual/tutorial/write-a- tumblelog-application-with-django-mongodb- engine/) 13 Friday, January 25, 13
  8. gem install mongoid Has an ActiveRecord-compatible interface, so it behaves

    just like a normal ActiveRecord model 15 Friday, January 25, 13