Exploring the Internals of Active Record

Exploring the Internals of Active Record

ChariotSolutions via YouTube Direct link

DB Connections ARE NOT Thread Safe

43 of 59

43 of 59

DB Connections ARE NOT Thread Safe

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Exploring the Internals of Active Record

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 Philadelphia Emerging Technology For The ENTERPRISE
  3. 3 Aaron Patterson @tenderlove
  4. 4 Rails Core Team
  5. 5 enterprise gem
  6. 6 Expense Reports
  7. 7 Rube Goldberg Expense Reporting System
  8. 8 Interfaces & Adapters
  9. 9 Exploring the internals of Active Record
  10. 10 I love my cat!
  11. 11 Disrupt Space
  12. 12 Disrupt the Space of Space Disruption
  13. 13 SEO Optimization
  14. 14 Leif Erikson (Later invented Cell Phones)
  15. 15 Release Date: September 2012
  16. 16 Problems.
  17. 17 Too Many Open Questions.
  18. 18 minitest/spec
  19. 19 Action Controller::Live
  20. 20 Streaming / Polling (with timeout)
  21. 21 Pitfalls
  22. 22 Webserver
  23. 23 Long Responses
  24. 24 Client Disconnect
  25. 25 Use Polling
  26. 26 Where is the bottleneck?
  27. 27 Time Breakdown
  28. 28 How do the test tasks work?
  29. 29 You app can have custom Rake tasks lib/tasks
  30. 30 Multiple Loads
  31. 31 Challenges
  32. 32 Switching Environments
  33. 33 Your app is a singleton
  34. 34 Change the env before app load
  35. 35 loading schema.rb
  36. 36 Real Solution: Remove Singleton
  37. 37 Connection Pooling
  38. 38 Pool limit =~ Server threads
  39. 39 Threads Pool Size is Just FineTM
  40. 40 Thread Safety
  41. 41 Is XXX Library Thread Safe?
  42. 42 Everything is Thread Safe, if you know the rules.
  43. 43 DB Connections ARE NOT Thread Safe
  44. 44 No locks around socket operations
  45. 45 AR Objects ARE NOT Thread Safe
  46. 46 No locks around read / write ops
  47. 47 Underlying DS is a hash with no locks
  48. 48 Split Work by Type
  49. 49 SQL Construction
  50. 50 Statement Cache
  51. 51 Query Cache: Same Statement Same Results
  52. 52 Saves Parse Time
  53. 53 Saves Bandwidth
  54. 54 Memory Increase
  55. 55 Cache Size Limit
  56. 56 Cache all invariants
  57. 57 Mamba Time
  58. 58 Health Walk.
  59. 59 Questions?

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.