SlideShare a Scribd company logo
Suche senden
Hochladen
Einloggen
Registrieren
MongoUK - PHP Development
Melden
Boxed Ice
Folgen
Boxed Ice
19. Jun 2010
•
0 gefällt mir
•
929 views
1
von
24
MongoUK - PHP Development
19. Jun 2010
•
0 gefällt mir
•
929 views
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Melden
Technologie
Boxed Ice
Folgen
Boxed Ice
Recomendados
MongoDB Oplog入門
Takahiro Inoue
7.2K views
•
24 Folien
MongoDBで作るソーシャルデータ新解析基盤
Takahiro Inoue
29K views
•
76 Folien
JavaSE7 Launch Event: Java7xGroovy
Yasuharu Nakano
1.4K views
•
24 Folien
MongoDB全機能解説2
Takahiro Inoue
2.8K views
•
85 Folien
How to stand on the shoulders of giants
Ian Barber
3.6K views
•
32 Folien
How to calculate the optimal undo retention in Oracle
Jorge Batista
576 views
•
2 Folien
Más contenido relacionado
Was ist angesagt?
jQuery Datatables With MongDb
sliimohara
3.3K views
•
9 Folien
Introduzione a C#
Lorenz Cuno Klopfenstein
674 views
•
54 Folien
Debugging: Rules And Tools - PHPTek 11 Version
Ian Barber
1.5K views
•
65 Folien
FrozenRails Training
Mike Dirolf
5.7K views
•
39 Folien
Developing 2D Games with Stage3D
Mike Jones
1.1K views
•
18 Folien
言語の設計判断
nishio
3.3K views
•
96 Folien
Was ist angesagt?
(20)
jQuery Datatables With MongDb
sliimohara
•
3.3K views
Introduzione a C#
Lorenz Cuno Klopfenstein
•
674 views
Debugging: Rules And Tools - PHPTek 11 Version
Ian Barber
•
1.5K views
FrozenRails Training
Mike Dirolf
•
5.7K views
Developing 2D Games with Stage3D
Mike Jones
•
1.1K views
言語の設計判断
nishio
•
3.3K views
MySQL Create Table
Hoyoung Jung
•
6.3K views
Зависимые типы в GHC 8. Максим Талдыкин
Юрий Сыровецкий
•
2.6K views
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Arian Gutierrez
•
173 views
コミュニケーションとしてのコード
Atsushi Shibata
•
2.6K views
Litebox
meli media
•
34 views
Making Mongo realtime - oplog tailing in Meteor
yaliceme
•
2.9K views
Couchdb
Brian Smith
•
508 views
R code
Manav Goel
•
26 views
Core dev summit
Jeff Miccolis
•
406 views
Windows Server 2012 Active Directory Recovery
Serhad MAKBULOĞLU, MBA
•
739 views
MongoDB: How it Works
Mike Dirolf
•
13.5K views
Full-Stack JavaScript with Node.js
Michael Lehmann
•
2.5K views
Super Advanced Python –act1
Ke Wei Louis
•
1.5K views
Python queue solution with asyncio and kafka
Ondřej Veselý
•
2.6K views
Destacado
America Compared
sarah williamson
184 views
•
7 Folien
Latin America Slides
sarah williamson
506 views
•
11 Folien
California
sarah williamson
143 views
•
3 Folien
Bvi Company Formation
Peter Bang
749 views
•
6 Folien
Seychelles Company Formation
Peter Bang
535 views
•
6 Folien
The Little Ice Age
sarah williamson
120 views
•
5 Folien
Destacado
(18)
America Compared
sarah williamson
•
184 views
Latin America Slides
sarah williamson
•
506 views
California
sarah williamson
•
143 views
Bvi Company Formation
Peter Bang
•
749 views
Seychelles Company Formation
Peter Bang
•
535 views
The Little Ice Age
sarah williamson
•
120 views
Belize Company Formation
Peter Bang
•
509 views
Nations Report
sarah williamson
•
613 views
Cyprus Trust Formation
Peter Bang
•
580 views
Investigación Acción
Sandra G.
•
179 views
Nationsrpt 2&3
sarah williamson
•
221 views
Cyprus Company Formation
Peter Bang
•
494 views
Script up your application with Lua! -- RyanE -- OpenWest 2014
ryanerickson
•
11.3K views
1.4 Complete A Grid
Luis
•
150 views
MongoDB - Monitoring & queueing
Boxed Ice
•
1.1K views
Crossroads Of Freedom
sarah williamson
•
563 views
Presentación protocolo de investigación
Sandra G.
•
926 views
Webinar - Approaching 1 billion documents with MongoDB
Boxed Ice
•
8.9K views
Similar a MongoUK - PHP Development
Spl Not A Bridge Too Far phpNW09
Michelangelo van Dam
2K views
•
57 Folien
From mysql to MongoDB(MongoDB2011北京交流会)
Night Sailer
1.5K views
•
59 Folien
Can't Miss Features of PHP 5.3 and 5.4
Jeff Carouth
3.1K views
•
66 Folien
Mongo-Drupal
Forest Mars
6.6K views
•
34 Folien
MiamiJS - The Future of JavaScript
Caridy Patino
761 views
•
50 Folien
This upload requires better support for ODP format
Forest Mars
6.1K views
•
35 Folien
Similar a MongoUK - PHP Development
(20)
Spl Not A Bridge Too Far phpNW09
Michelangelo van Dam
•
2K views
From mysql to MongoDB(MongoDB2011北京交流会)
Night Sailer
•
1.5K views
Can't Miss Features of PHP 5.3 and 5.4
Jeff Carouth
•
3.1K views
Mongo-Drupal
Forest Mars
•
6.6K views
MiamiJS - The Future of JavaScript
Caridy Patino
•
761 views
This upload requires better support for ODP format
Forest Mars
•
6.1K views
Talkaboutlithium
noppoman722
•
778 views
mongodb-introduction
Tse-Ching Ho
•
1.9K views
PHP Development With MongoDB
Fitz Agard
•
2.7K views
PHP Development with MongoDB (Fitz Agard)
MongoSF
•
2.7K views
PHP Data Objects
Wez Furlong
•
10.4K views
Refactoring to Macros with Clojure
Dmitry Buzdin
•
3.5K views
4069180 Caching Performance Lessons From Facebook
guoqing75
•
2.4K views
Being functional in PHP (PHPDay Italy 2016)
David de Boer
•
1.4K views
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
•
2.6K views
Doctrine MongoDB Object Document Mapper
Jonathan Wage
•
13K views
Getting Started with MongoDB and NodeJS
MongoDB
•
3.9K views
Rapid and Scalable Development with MongoDB, PyMongo, and Ming
Rick Copeland
•
1.6K views
Latinoware
kchodorow
•
558 views
Php tips-and-tricks4128
PrinceGuru MS
•
854 views
Más de Boxed Ice
MongoDB Tokyo - Monitoring and Queueing
Boxed Ice
1.2K views
•
73 Folien
MongoUK 2011 - Rplacing RabbitMQ with MongoDB
Boxed Ice
9.2K views
•
55 Folien
MongoDB - Monitoring and queueing
Boxed Ice
695 views
•
51 Folien
Monitoring MongoDB (MongoUK)
Boxed Ice
841 views
•
43 Folien
Monitoring MongoDB (MongoSV)
Boxed Ice
2K views
•
43 Folien
MongoUK - PHP Development
Boxed Ice
980 views
•
24 Folien
Más de Boxed Ice
(7)
MongoDB Tokyo - Monitoring and Queueing
Boxed Ice
•
1.2K views
MongoUK 2011 - Rplacing RabbitMQ with MongoDB
Boxed Ice
•
9.2K views
MongoDB - Monitoring and queueing
Boxed Ice
•
695 views
Monitoring MongoDB (MongoUK)
Boxed Ice
•
841 views
Monitoring MongoDB (MongoSV)
Boxed Ice
•
2K views
MongoUK - PHP Development
Boxed Ice
•
980 views
MongoUK - Approaching 1 billion documents with MongoDB1 Billion Documents
Boxed Ice
•
1.6K views
Último
Privacy in the era of quantum computers
Speck&Tech
95 views
•
37 Folien
Future of Skills
Alison B. Lowndes
73 views
•
50 Folien
GIT AND GITHUB (1).pptx
GDSCCVRGUPoweredbyGo
36 views
•
20 Folien
Cloud Composer workshop at Airflow Summit 2023.pdf
Leah Cole
94 views
•
80 Folien
Unleashing Innovation: IoT Project with MicroPython
Vubon Roy
38 views
•
10 Folien
Uber Clone Script - Keys to Understanding the Ride Hailing Industry
eSiteWorld TechnoLabs Pvt. Ltd.
26 views
•
8 Folien
Último
(20)
Privacy in the era of quantum computers
Speck&Tech
•
95 views
Future of Skills
Alison B. Lowndes
•
73 views
GIT AND GITHUB (1).pptx
GDSCCVRGUPoweredbyGo
•
36 views
Cloud Composer workshop at Airflow Summit 2023.pdf
Leah Cole
•
94 views
Unleashing Innovation: IoT Project with MicroPython
Vubon Roy
•
38 views
Uber Clone Script - Keys to Understanding the Ride Hailing Industry
eSiteWorld TechnoLabs Pvt. Ltd.
•
26 views
Webhook Testing Strategy
Dimpy Adhikary
•
82 views
Product Research Presentation
DeahJadeArellano
•
25 views
Need for Speed: Removing speed bumps in API Projects
Łukasz Chruściel
•
121 views
"Architecture assessment from classics to details", Dmytro Ovcharenko
Fwdays
•
42 views
Meetup_adessoCamunda_2023-09-13_Part1&2_en.pdf
MariaAlcantara50
•
40 views
Chandrayaan 3.pptx
PrasunJha12
•
31 views
9C Monthly Newsletter - SEPT 2023
PublishingTeam
•
234 views
Navigating the Future
OnBoard
•
35 views
Empowering City Clerks
OnBoard
•
82 views
How resolve Gem dependencies in your code?
Hiroshi SHIBATA
•
154 views
Product Research Presentation-Maidy Veloso.pptx
MaidyVeloso
•
22 views
Google Cloud Study Jams Info Session
GDSCPCCE
•
74 views
Mastering Automation Quality: Exploring UiPath's Test Suite for Seamless Test...
DianaGray10
•
38 views
Getting your enterprise ready for Microsoft 365 Copilot
Vignesh Ganesan I Microsoft MVP
•
217 views
MongoUK - PHP Development
1.
PHP Development
David Mytton 1/24 david@boxedice.com / @davidmytton
2.
Server Density Monitoring
Processing Database UI 2/24 www.serverdensity.com
3.
13 months ago 3/24
Why we moved: http://bit.ly/mysqltomongo
4.
1. Install
pecl install mongo 4/24
5.
2. Connect
$mongo = new Mongo(‘a.example.com,b.example.com’, array('persist' => '')); 5/24
6.
2. Connect
mongodb://[username:password@]host1 [:port1][,host2[:port2:],...]/db 6/24
7.
Replica Pairs
$mongo = new Mongo(‘a.example.com,b.example.com’, array('persist' => '')); 7/24
8.
Replica Pairs =
Failover Replica Pair Master A Slave A DC1 DC2 16GB RAM 16GB RAM Replica Pair Master B Slave B DC1 DC2 8/24 16GB RAM 16GB RAM
9.
Persistent Connections
$mongo = new Mongo(‘a.example.com,b.example.com’, array('persist' => '')); 9/24
10.
Persistent Connections
$mongo = new Mongo(‘a.example.com,b.example.com’, array('persist' => 'owl')); 10/24
11.
db.stats()
Documents 937,393,315 Collections 27,566 Indexes 45,277 Stored data 638GB Inserts 5000-8000/s 11/24 As of 17th Jun 2010.
12.
3. Query
$serversCollection = $mongo->selectCollection(‘servers’); $server = $serversCollection->findOne(array(‘os’ => ‘windows’), array(‘_id’, ‘name’, ‘ip’)); 12/24
13.
3. Query
$serversCollection = $mongo->selectCollection(‘servers’); $server = $serversCollection->findOne(array(‘os’ => ‘windows’), array(‘_id’, ‘name’, ‘ip’)); 13/24
14.
3. Query
$serversCollection = $mongo->selectCollection(‘servers’); $server = $serversCollection->findOne(array(‘os’ => ‘windows’), array(‘_id’, ‘name’, ‘ip’)); 14/24
15.
Docs
www.php.net/mongo 15/24
16.
Abstraction/Map layers
•ActiveMongo •Doctrine •Mango •Vork http://www.mongodb.org/display/DOCS/PHP+Language+Center 16/24
17.
MongoDate
MongoDB Equivalent new MongoDate() time() new MongoDate(strtotime(‘now’)) time() 17/24
18.
MongoDate $from =
new MongoDate(strtotime(‘2010-06-18 00:00:00’)); $to = new MongoDate(strtotime(‘2010-06-18 23:59:59’)); $collection->find(array(‘added’ => array('$gt' => $from, '$lte' => $to))); 18/24
19.
MongoId
$doc = $collection->findOne(array(‘_id’ => ‘4b74ae0d064b35442948da4c’)); 19/24
20.
MongoId
$id = new MongoId(‘4b74ae0d064b35442948da4c’); $doc = $collection->findOne(array(‘_id’ => $id)); 20/24
21.
MongoId & remove()
Slow(er): $collection->remove(array(‘key1’ => 5, ‘key2’ => 6)); Fast(er): $cursor = $collection->find(array(‘key1’ => 5, ‘key2’ => 6)); $while ($cursor->hasNext()) { $item = $cursor->getNext(); $key = new MongoId($cursor->key()); $collection->remove(array('_id' => $key)); } 21/24
22.
Safe insert()
$collection->insert($doc, array(‘safe’)); 22/24
23.
Docs
www.php.net/mongo 23/24
24.
Slides
blog.boxedice.com/mongodb David Mytton 24/24 david@boxedice.com / @davidmytton