Your SlideShare is downloading. ×
Why not ORM
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Why not ORM

5,843

Published on

What do you need to keep in mind when using ORM, how it will affect your needs and what are the disadvantages of using and advantages of not using ORM.

What do you need to keep in mind when using ORM, how it will affect your needs and what are the disadvantages of using and advantages of not using ORM.

Published in: Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
5,843
On Slideshare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
44
Comments
0
Likes
6
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. Why not ORM? Michal Špaček, Skype; WebExpo 2010 , Prague
  • 2. OMGWTF ORM ?
  • 3. O bject- R elational M apping !
  • 4. ORM, SRSLY ?
  • 5. PHP/ORM guru , anyone ?
      2010 © Skype – As seen on TV
      Slide
  • 6. ORM… … maps relational databases to objects says František Tröster
  • 7. ORM… … maps relational databases to objects says František Tröster … maps objects to relational databases says Jiří Knesl
  • 8. ORM… … maps relational databases to objects says František Tröster … maps objects to relational databases says Jiří Knesl … is a technique for converting data between incompatible type systems in OOP languages says Wiki Pedia
  • 9. ORM is like …
  • 10. … TDD
  • 11. Best thing since sliced bread . Or maybe not .
  • 12. ORM is said to allow the database systems swap „ on the fly “…
  • 13.
      2010 © Skype – As seen on TV
      Slide
  • 14. … , but have anyone seen it, ever ?
  • 15. Most of the times you'll end up changing bunch of other things too, so it's not that easy as it might seem .
  • 16. When your O/R mapper goes bananas …
  • 17. ORM expert
      2010 © Skype – As seen on TV
      Slide
  • 18. Database system expert
      2010 © Skype – As seen on TV
      Slide
  • 19. Using ORM and want to refactor relations ?
  • 20. Do it, pretty please, but you have to refactor code too…
  • 21. … and you need to deploy all the changed stuff at once !
  • 22. And what about accessing one database with several technologies?
      2010 © Skype – As seen on TV
      Slide
  • 23. Put your business logic into the database !
  • 24.  
  • 25.  
  • 26. Issues solved ( all of them)
      2010 © Skype – As seen on TV
      Slide
  • 27. Database code can be tested separately from the rest of the code
  • 28. Application code tests do not need a connection to the database
  • 29. Forget explicit transactions ( BEGIN & COMMIT ) if you can has your codes wrapped in functions
  • 30. You'll get …
  • 31. Nice connection pooling
      2010 © Skype – As seen on TV
      Slide
  • 32. Every query can be executed on different machine
  • 33. Add proxies…
      2010 © Skype – As seen on TV
      Slide
  • 34. … and get high performance clusters
      2010 © Skype – As seen on TV
      Slide
  • 35.  
  • 36. Because we got no transactions
  • 37. Teams of database developers and admins …
  • 38. … can monitor functions and their performance
  • 39. … can redirect functions to be executed in different database when something goes horribly wrong
  • 40. … are generally useless while using ORM http://www.xkcd.com/303/ ORM, DUDE!
  • 41. While without ORM …
  • 42. … everything's possible!
      2010 © Skype – As seen on TV
      Slide
  • 43. Will YOU stop using ORM?
  • 44. Problems summarized :
    • getting external help
    • 45. refactoring relations
    • 46. multiple technologies
    • 47. tricky testing
    • 48. inefficient connection pooling
    • 49. admins are hopeless, if any
    • 50. performance monitoring and control
  • 51.
      Thanks for listening Michal Špaček Skype: spazef0rze ; Twitter: @ spazef0rze BTW, we're hiring: jobs.skype.com/cz

×