Your SlideShare is downloading. ×
MongoDB & PHP by Alex Litvinok
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

MongoDB & PHP by Alex Litvinok

1,634
views

Published on

Александр на протяжении длительного времени занимался тестированием драйверов MongoDB для разных языков, в том числе и PHP. В докладе: …

Александр на протяжении длительного времени занимался тестированием драйверов MongoDB для разных языков, в том числе и PHP. В докладе:
- Введение в MongoDB
- Сравнение NoSQL баз данных
- Ответы на популярные вопросы: как? когда? почему?
- MongoDB и PHP фреймворки

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,634
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MongoDB & PHP © 1993-2012. EPAM Systems. All Rights Reserved. Alex Litvinok
  • 2. Just Intro.
  • 3. MongoDB is Document-oriented database Full Index support Querying Atomic modifiers Replication & Sharding Map-Reduce & GridFS
  • 4. MongoDB in SQL terms
  • 5. Normalized SQL Credo Denormalized True MongoDB
  • 6. Not Only SQL.
  • 7. Retains some friendly properties of SQL. AGPL license Written on C++ Custom protocol (BSON)
  • 8. Best of BigTable and Dynamo Apache license Written on Java Thrift & custom binary (CQL3) protocol
  • 9. Blazing fast BSD license Written on C/C++ Thrift & custom binary (CQL3) protocol
  • 10. DB consistency, ease of use Apache license Written on C/C++ HTTP/REST protocol
  • 11. Graph database - connected data GPL/AGPL/Commercial licenses Written on Java HTTP/REST (or embedding in Java) protocol
  • 12. Billions of rows X millions of columns Apache license Written on Java HTTP/REST (also Thrift) protocol
  • 13. MongoDB Documents Cassandra Column families Redis Collections CouchDB Documents Neo4j Graphs Hbase Column families
  • 14. B-Tree MongoDB Memtable / SSTable Cassandra In-Memory with snapshots Redis Append-only B-Tree CouchDB On-disk linked lists Neo4j Memtable / SSTable on HDFS Hbase
  • 15. When? Why?
  • 16. SAP uses MongoDB as a core component of SAP’s platform- as-a-service (PaaS) offering.
  • 17. MongoDB is used for back-end storage on the SourceForge front pages, project pages, and download pages for all projects.
  • 18. The New York Times is using MongoDB in a form-building application for photo submissions.
  • 19. GitHub uses MongoDB for an internal reporting application.
  • 20. Foursquare uses MongoDB to store venues and user check- ins into venues, sharding the data over more than 25 machines on Amazon EC2.
  • 21. They all use MongoDB
  • 22. And they too..
  • 23. About Integration.
  • 24. Native PHP Driver 01. <?php 02. 03. $m = new MongoClient(); 04. $db = $m->selectDB("example"); 05. 06. ?>
  • 25. ent class . ongoDB class ection class . sor class . . The Mon The MongoD . The . . The Mo The MongoClient class The MongoDB class The MongoCollection class The MongoCursor class
  • 26. 01. $m = new MongoClient(); 02. $db = $m->comedy; 03. $coll = $db->cartoons; 04. 05. $call->insert([‘name’=>’Alex’]); 06. 07. $result = $call->find(); 08. $result = $call->find([‘name’ => ‘Alex’]);
  • 27. CakePHP Doctrine Drupal Kohana Framework Lithium Yii Zend Framework Libraries and Frameworks
  • 28. ActiveMongo MapReduce API MongoFilesystem Mandango MongoDB Pagination MongoDB PHP ODM Stand-Alone Tools
  • 29. http://docs.mongodb.org/ecosystem/drivers/php- libraries/
  • 30. The End.
  • 31. The End.