Your SlideShare is downloading. ×
  • Like
A rubyist's naive comparison of some database systems and toolkits
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

A rubyist's naive comparison of some database systems and toolkits

  • 2,949 views
Published

This talk is a quick comparison of some of the many relational and non relational database systems that can be used with ruby. …

This talk is a quick comparison of some of the many relational and non relational database systems that can be used with ruby.

It was given at Fosdem 2010 (http://fosdem.org) in the Ruby on Rails Developer Room.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
2,949
On SlideShare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
26
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. A rubyist's naive comparison of some database systems and toolkits Marc Lainez
  • 2. Who am I ?
  • 3. Ruby on rails developer
  • 4. Agile optimist...
  • 5. The sequel world
  • 6. Object-relational mapping is a programming technique for converting data between incompatible type systems in relational databases and object-oriented programming languages. [wikipedia]
  • 7. Active record
  • 8. Active record One class, one table One object, one row
  • 9. Active record What i don’t like about it what did i map again ? migrations migrations migrations... Too much queries... (probably my fault, i’m lazy) Sometimes you have to switch to sql
  • 10. Active record What i like about it strongly bond to rails... nice documentation works with most plugins and gems... works with most sql databases
  • 11. Datamapper
  • 12. Datamapper very similar to ar
  • 13. Datamapper
  • 14. Datamapper What i don’t like about it migrations Some plugins might not work (thinking sphinx)
  • 15. Datamapper What i like about it mapping in models modular strategic Eager loading works with most sql databases faster than ar
  • 16. The NOSQL world
  • 17. NOSQL non-relational data stores that doesn’t require fixed table schemas, and usually avoid join operations. [wikipedia]
  • 18. NOSQL and ruby Document based db Mongodb couchdb ... Key/value store TOkyo redis project voldemort ...
  • 19. NOSQL and ruby mongodb
  • 20. NOSQL and ruby COUCHDB Stores documents as json easy to read, easy to parse, easy to send through a network is distributed database can exist in multiple places EAch document is a restful resource
  • 21. COUCHDB Web interface
  • 22. COUCHDB RELAXDB
  • 23. COUCHDB, ar-like Stuffing couchfoo
  • 24. NOSQL and ruby tokyo key/value store distributed (tyrant) full-text search engine (dystopia)
  • 25. NOSQL and ruby tokyo hash db one key, one value b-tree db one key, multiple values fixed-length db access via natural number keys table db mimics relational db
  • 26. Tokyo b-tree db
  • 27. The best of both worlds ?
  • 28. nosql in SQL friendly
  • 29. What do i think about all this ?
  • 30. a few links http://www.belighted.com http://datamapper.org/ http://www.mongodb.org/ http://couchdb.apache.org/ http://github.com/paulcarey/relaxdb http://github.com/paulca/stuffing http://www.google.com/search?q=couchfoo http://1978th.net/tokyocabinet/ http://friendlyorm.com/
  • 31. questions ?