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

MongoDB 101

MongoDB 101

Wprowadzenie do dokumentowej bazy danych

Leszek Krupiński

July 15, 2013
Tweet

More Decks by Leszek Krupiński

Other Decks in Programming

Transcript

  1. MONGODB 101 Wprowadzenie do dokumentowej bazy danych PHPers.02 15 lipca

    2013 Leszek Krupiński @leafnode Monday, July 15, 13
  2. JSON BSON { _id : ObjectId("51d66af57d3afb7a973b00ab"), username : 'foo', firstName

    : 'Jan', lastName : 'Kowalski', address : { street : 'Marszałkowska 12', city : 'Warszawa', zip : '00-950' } friends : [ 'janek', 'mirek', 'wiesiek' ] } Monday, July 15, 13
  3. MODEL DOKUMENTOWY { _id : ObjectId("51d66af57d3afb7a973b00ab"), author : 'janek', title

    : 'Ciekawy post', body : 'Lorem Ipsum', date : ISODate("2012-12-19T20:10:56.920Z"), tags : [ 'lorem', 'testowe', 'z życia wzięte' ], comments : [ { author : 'Anonim', date : ISODate("2012-12-19T20:10:56.920Z"), body : 'Nuda!' }, { author : 'Zdzisiek', date : ISODate("2012-12-19T20:10:56.920Z"), body : 'Wcale nie nuda.' } ] } Monday, July 15, 13