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
92
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
450
Dobrze posól swoje hasło
leafnode
0
100
Dobrze posól swoje hasło (z notatkami)
leafnode
0
90
PHPNG kontra HHVM
leafnode
0
99
PHPNG kontra HHVM (z notatkami)
leafnode
0
64
Ewolucja PHP: PHP 5.6, NG, PHP 7, HHVM
leafnode
2
290
Sculpin - Generowanie statycznych stron w PHP
leafnode
2
57
Skalowanie aplikacji PHP
leafnode
1
410
Other Decks in Programming
See All in Programming
250830 IaCの選定~AWS SAMのLambdaをECSに乗り換えたときの備忘録~
east_takumi
0
230
エンジニアのための”最低限いい感じ”デザイン入門
shunshobon
0
130
Nuances on Kubernetes - RubyConf Taiwan 2025
envek
0
200
開発チーム・開発組織の設計改善スキルの向上
masuda220
PRO
15
8.2k
ソフトウェアテスト徹底指南書の紹介
goyoki
1
110
AIでLINEスタンプを作ってみた
eycjur
1
200
令和最新版手のひらコンピュータ
koba789
14
8k
SOCI Index Manifest v2が出たので調べてみた / Introduction to SOCI Index Manifest v2
tkikuc
1
110
フロントエンドのmonorepo化と責務分離のリアーキテクト
kajitack
2
140
自作OSでDOOMを動かしてみた
zakki0925224
1
1.4k
Namespace and Its Future
tagomoris
6
470
Laravel Boost 超入門
fire_arlo
1
130
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
RailsConf 2023
tenderlove
30
1.2k
KATA
mclloyd
32
14k
Six Lessons from altMBA
skipperchong
28
4k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
900
Raft: Consensus for Rubyists
vanstee
140
7.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
780
[RailsConf 2023] Rails as a piece of cake
palkan
56
5.8k
Designing for humans not robots
tammielis
253
25k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
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