Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
MongoDB 101
Search
Leszek Krupiński
July 15, 2013
Programming
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MongoDB 101
Wprowadzenie do dokumentowej bazy danych
Leszek Krupiński
July 15, 2013
More Decks by Leszek Krupiński
See All by Leszek Krupiński
So that the daemon won’t die
leafnode
2
420
Practical PHP7
leafnode
2
510
Dobrze posól swoje hasło
leafnode
0
130
Dobrze posól swoje hasło (z notatkami)
leafnode
0
120
PHPNG kontra HHVM
leafnode
0
130
PHPNG kontra HHVM (z notatkami)
leafnode
0
89
Ewolucja PHP: PHP 5.6, NG, PHP 7, HHVM
leafnode
2
310
Sculpin - Generowanie statycznych stron w PHP
leafnode
2
79
Skalowanie aplikacji PHP
leafnode
1
440
Other Decks in Programming
See All in Programming
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
350
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
150
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
500
[GoCon2026] When Goroutines Are Not Enough: Runtime Locality in High-Throughput Go
takehaya
6
2.4k
setup-vp GitLab対応の裏側
naokihaba
0
120
SREの越境 / SRE Collaboration
y0hgi
2
270
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3.1k
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
4.9k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
290
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
180
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
520
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
200
Featured
See All Featured
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
600
Claude Code のすすめ
schroneko
67
230k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Cult of Friendly URLs
andyhume
79
7k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Design in an AI World
tapps
1
330
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
It's Worth the Effort
3n
188
29k
Making the Leap to Tech Lead
cromwellryan
135
10k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
440
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