Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MongoDB 101
Search
Leszek Krupiński
July 15, 2013
Programming
0
90
MongoDB 101
Wprowadzenie do dokumentowej bazy danych
Leszek Krupiński
July 15, 2013
Tweet
Share
More Decks by Leszek Krupiński
See All by Leszek Krupiński
So that the daemon won’t die
leafnode
2
390
Practical PHP7
leafnode
2
420
Dobrze posól swoje hasło
leafnode
0
87
Dobrze posól swoje hasło (z notatkami)
leafnode
0
72
PHPNG kontra HHVM
leafnode
0
81
PHPNG kontra HHVM (z notatkami)
leafnode
0
48
Ewolucja PHP: PHP 5.6, NG, PHP 7, HHVM
leafnode
2
280
Sculpin - Generowanie statycznych stron w PHP
leafnode
2
52
Skalowanie aplikacji PHP
leafnode
1
390
Other Decks in Programming
See All in Programming
functionalなアプローチで動的要素を排除する
ryopeko
1
200
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
370
Fibonacci Function Gallery - Part 2
philipschwarz
PRO
0
210
AWS re:Invent 2024個人的まとめ
satoshi256kbyte
0
100
React 19でお手軽にCSS-in-JSを自作する
yukukotani
5
560
Alba: Why, How and What's So Interesting
okuramasafumi
0
210
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
870
技術的負債と向き合うカイゼン活動を1年続けて分かった "持続可能" なプロダクト開発
yuichiro_serita
0
300
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
300
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
週次リリースを実現するための グローバルアプリ開発
tera_ny
1
1.2k
ASP.NET Core の OpenAPIサポート
h455h1
0
120
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
30
2.1k
Code Review Best Practice
trishagee
65
17k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Why Our Code Smells
bkeepers
PRO
335
57k
Agile that works and the tools we love
rasmusluckow
328
21k
Building Adaptive Systems
keathley
38
2.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Automating Front-end Workflow
addyosmani
1366
200k
Producing Creativity
orderedlist
PRO
343
39k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
570
Transcript
MONGODB 101 Wprowadzenie do dokumentowej bazy danych PHPers.02 15 lipca
2013 Leszek Krupiński @leafnode Monday, July 15, 13
PODSTAWY NoSQL i dokumentowe bazy danych Monday, July 15, 13
MONGODB Baza dokumentowa, object store Monday, July 15, 13
REPLIKACJA I SHARDING OOTB Monday, July 15, 13
GEOSPATIAL INDEX Monday, July 15, 13
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
ZAPYTANIA CRUD Monday, July 15, 13
FIND Monday, July 15, 13
INSERT Monday, July 15, 13
UPDATE 3 sposoby na update Monday, July 15, 13
REMOVE Monday, July 15, 13
PROJEKTOWANIE SCHEMATU Schemaless != Nie planuj Monday, July 15, 13
MODEL RELACYJNY Monday, July 15, 13
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
GEOSPATIAL INDEX db.places.ensureIndex( { location: ‘2d’ } ) Monday, July
15, 13
db.places.find( { location: { $near: [ 52, 21 ] }
} ) Monday, July 15, 13
MONGODB I PHP pecl install mongo Monday, July 15, 13
DEMO Monday, July 15, 13
DOCTRINE DEMO Monday, July 15, 13
NOTKA $qb = $dm->createQueryBuilder('Application_Model_Entry') ->field('club.$id')->equals(new MongoId($club->getId())); Monday, July 15, 13