mongodb a new genie in the lamp stack
play

MongoDB: A New Genie in the LAMP (Stack) Kristina Chodorow - PowerPoint PPT Presentation

MongoDB: A New Genie in the LAMP (Stack) Kristina Chodorow kristina@mongodb.org a retrospective SQL invented now 1974 2010 SQL invented now 1974 2010 SQL invented now 1974 2010 1979 SQL invented now 1974 2010 1979 SQL


  1. MongoDB: A New Genie in the LAMP (Stack) Kristina Chodorow kristina@mongodb.org

  2. a retrospective

  3. SQL invented now 1974 2010

  4. SQL invented now 1974 2010

  5. SQL invented now 1974 2010 1979

  6. SQL invented now 1974 2010 1979

  7. SQL invented now 1974 2010 1982-1996 1979

  8. SQL invented now 1974 2010 1982-1996 1995 1979

  9. SQL invented now 1974 2010 1982-1996 1995 2010 1979

  10. until 2009...

  11. until 2009...

  12. SQL invented now 1974 2010 1982-1996 1995 1979 2010

  13. server databases contain tables contain rows

  14. server schema databases contain tables contain rows

  15. server schema databases contain tables contain rows joins

  16. things have changed in the last 15 years duh

  17. SQL invented now 1974 2010 1982-1996 1995 1979 2010

  18. 1995 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  19. 1995 2738 websites 1994 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  20. >10,000 websites 1995 1995 2738 websites 1994 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  21. >10,000 websites 1998 1995 1995 2738 websites 1994 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  22. We should get a mainframe, old chap. Harumph.

  23. never leave me!

  24. downtime becomes important

  25. hardware ok?

  26. failover to slave no hardware ok?

  27. failover to slave no hardware ok? yes fsck worked?

  28. failover to slave no hardware ok? yes no fsck worked?

  29. failover to slave no hardware ok? yes no fsck worked? yes transaction log

  30. failover to slave no no hardware ok? yes no fsck worked? yes transaction log

  31. failover to slave no no hardware ok? yes no fsck worked? yes yes transaction yay! log

  32. failover to slave no no hardware ok? yes no fsck worked? yes yes transaction yay! log

  33. >10,000 websites 1998 1995 1995 2738 websites 1994 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  34. >10,000 websites 1998 1995 1995 2738 websites 2004 1994 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  35. >10,000 websites 1998 1995 1995 2738 websites 2004 1994 BigTable 2004 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  36. MapReduce >10,000 websites 2005 1998 1995 1995 2738 websites 2004 1994 BigTable 2004 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  37. you left me!

  38. eh, whatever.

  39. prod1.example.co m prod2.example.co m

  40. prod1.example.co m prod2.example.co m

  41. prod1.example.co m prod2.example.co m

  42. prod2.example.co m prod1.example.co m

  43. prod1.example.co m prod2.example.co m

  44. prod1.example.co m prod2.example.co m

  45. prod1.example.co ? m prod2.example.co m

  46. prod1.example.co m prod2.example.co m

  47. ? prod1.example.co m prod2.example.co m

  48. prod1.example.co m prod2.example.co m

  49. prod1.example.co m prod2.example.co m

  50. primary secondary secondary passive

  51. My priority is 2 My priority is 1 secondary secondary passive

  52. primary secondary passive

  53. I'm 3ms behind I'm 2ms behind secondary secondary passive

  54. secondary primary passive

  55. I'll still take reads. passive

  56. okay

  57. ?

  58. make sure two slaves have this

  59. all set

  60. EXCEPTION

  61. EXCEPTION

  62. E

  63. MapReduce >10,000 websites 2005 1998 1995 1995 2738 websites 2004 2007 1994 BigTable 2004 SQL invented now 1974 2010 1982-1996 1995 1979 2010

  64. Application PHP Apache Linux

  65. getting started

  66. www.mongodb.org

  67. $ mysqld

  68. $ mongod

  69. $ mysql

  70. $ mongo

  71. $ mongo MongoDB shell version 1.6.0 connecting to: test >

  72. $ mongo MongoDB shell version 1.6.0 connecting to: test > db

  73. $ mongo MongoDB shell version 1.6.0 connecting to: test > db test >

  74. $ mongo MongoDB shell version 1.6.0 connecting to: test NO ADMINISTRATION > db test >

  75. $ mongo MongoDB shell version 1.6.0 connecting to: test > db test > table = db.foo

  76. server

  77. server databases

Recommend


More recommend