SlideShare a Scribd company logo
1 of 30
Download to read offline
Pengenalan MongoDB dan
  Penggunaanya Dalam Aplikasi PHP.

  Perjumpaan I : Kumpulan Minat Khusus Pangkalan Data Sektor Awam (DB SIG)
  Khamis 14 Jun 2012, Bilik Mesyuarat , Aras 6, MAMPU, MKN-Embassy Techzone, Jalan Teknokrat 2, 63000 , Cyberjaya




  Disampaikan Oleh : Syahman bin Mohamad (Wakil PESIMA)

Sabtu, 16 Jun 2012
?

Sabtu, 16 Jun 2012
MongoDB (dari kata “humongous”).

         “Scallable, high-performance, open
         source, schema-free, document-
         oriented database” mongodb.org


Sabtu, 16 Jun 2012
Cabang Pangkalan Data NoSQL.

                        NoSQL ?
      ● Not Only SQL
      ● Berbeza dengan RDBMS

      ● Tidak perlu skema

      ● Tidak menggunakan SQL untuk kuiri

      ● Simpan data guna konsep dokumen


Sabtu, 16 Jun 2012
Pangkalan Data Menggunakan Konsep/Teknologi NoSQL




                           sumber : nosql.findthebest.com



Sabtu, 16 Jun 2012
# Falsafah 1


   “One size fits all” approach no longer applies !




Sabtu, 16 Jun 2012
# Falsafah 2


   Non-relational DBs scale more easily, especially
   horizontally




Sabtu, 16 Jun 2012
# Falsafah 3


   Focus on speed, performance, flexibility and
   scalability (adapt to increased demands)




Sabtu, 16 Jun 2012
# Falsafah 4


   Not concerned with transactional stuff and
   relational semantics




Sabtu, 16 Jun 2012
# Falsafah 5


   DB should be an on-demand commodity, in a cloud
   like fashion




Sabtu, 16 Jun 2012
# Falsafah 6
  MongoDB tries to
  achieve
  the performance of
  traditional key-value
  stores while
  maintaining
  functionality of
  traditional RDBMS

Sabtu, 16 Jun 2012
Ciri-Ciri Penting MongoDB
●    Indexing

●    Schema-less + very flexible

●    Durability, solved with replication / failover
     support, or use journaling

●    Document Storage ( Using BSON Format-
     JSON Like Object ) - eg :
    ({“nama” : “Razali Bin Alias”, “umur” : 30, “jawatan” : “PPTM”})
Sabtu, 16 Jun 2012
Contoh : Format JSON




Sabtu, 16 Jun 2012
Kuiri Data ?


Sabtu, 16 Jun 2012
Kuiri Pangkalan Data MongoDB
+ berasaskan javascript


                      Sql -->   select * from pengguna;




   MongoDB noSql --> db.penguna.find()



 Sabtu, 16 Jun 2012
Pemahaman Konsep MongoDB




Sabtu, 16 Jun 2012
# Konsep : Data Berorientasi Dokumen
 ●   Dokumen-dokumen adalah objek/rekod
     pangkalan data

 ●   Menggunakan format JSON (dalam
     bentuk binari)

 ●   Boleh simpan pelbagai jenis maklumat bersama.


Sabtu, 16 Jun 2012
# Konsep : Contoh Dokumen MongoDB




Sabtu, 16 Jun 2012
# Pemetaan Konsep : RDBMS vs Mongo
           oracle,mysql         mongoDB
           tables,views        collections
          records, rows     json documents,
                                objects
                     join      embedded
                               document
         queries return     queries return a
          records (s)            cursor
             index               index
Sabtu, 16 Jun 2012
# Konsep : Kursor

●   Queries returns 'cursor' instead of collections

●   Allows to iterate through result set

●   Performance – Big reason to use cursor

●   Find() function returns a cursor object

Sabtu, 16 Jun 2012
Demo ?
      Aplikasi PHP : Pendaftaran Kehadiran Peserta DB-SIG




Sabtu, 16 Jun 2012
# Demo : Collection Design



                      Dokumen 1

                      Dokumen 2

                      Dokumen 3



                     Dokumen ..n..




Sabtu, 16 Jun 2012   PESERTA
# Demo : Application Goals




   (1) – peserta -daftar rekod
   peserta

                                           (2)- admin - papar rekod
                                 PESERTA   peserta




Sabtu, 16 Jun 2012
# Demo : Document Structure

              peserta = {
              nama: 'SYAHMAN BIN MOHAMAD',
              gred : 'F32',
              jabatan : 'JABATAN PENDAFTARAN NEGARA,PUTRAJAYA',
              email : 'syahman@jpn.gov.my',
              peranan : [
              'PENTADBIR/PENGURUS PANGKALAN DATA',
              'TEKNIKAL DAN OPERASI',
              'PEMBANGUNAN SISTEM',
              'PEMBANGUN PANGKALAN DATA'],
              ahli : 'PESIMA',
              alahan : 'MAKANAN LAUT' }


Sabtu, 16 Jun 2012
Aspek Keselamatan ?


Sabtu, 16 Jun 2012
MongoDB Security Features

 ●   Use trusted environment

 ●   Firewall rules

 ●   IP address binding / port binding

 ●   Secure mode ( --auth @ --keyFiles )

Sabtu, 16 Jun 2012
Advanced Topics


Sabtu, 16 Jun 2012
MongoDB Advanced Topic

 ●   Map/Reduce

 ●   Aggregation

 ●   Sharding

 ●   Replica Sets

Sabtu, 16 Jun 2012
Dokumentasi ?
            http://www.mongodb.org/display/DOCS/Home




Sabtu, 16 Jun 2012
Terima Kasih


Sabtu, 16 Jun 2012

More Related Content

Similar to Presentation mongodb public sector dbsig malaysia

Mongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in BangaloreMongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in Bangalorerajkamaltibacademy
 
Certified NoSQL MongoDB (CNA)
Certified NoSQL MongoDB (CNA)Certified NoSQL MongoDB (CNA)
Certified NoSQL MongoDB (CNA)GICTTraining
 
Kickstarting Your Mongo Education with MongoDB University
Kickstarting Your Mongo Education with MongoDB UniversityKickstarting Your Mongo Education with MongoDB University
Kickstarting Your Mongo Education with MongoDB UniversityJuan Carlos Farah
 
MongoDB by Emroz sardar.
MongoDB by Emroz sardar.MongoDB by Emroz sardar.
MongoDB by Emroz sardar.Emroz Sardar
 
mongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputingmongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputingmoeincanada007
 
Copy of MongoDB .pptx
Copy of MongoDB .pptxCopy of MongoDB .pptx
Copy of MongoDB .pptxnehabsairam
 
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Treasure Data, Inc.
 
A Study on Mongodb Database.pdf
A Study on Mongodb Database.pdfA Study on Mongodb Database.pdf
A Study on Mongodb Database.pdfJessica Navarro
 
A Study on Mongodb Database
A Study on Mongodb DatabaseA Study on Mongodb Database
A Study on Mongodb DatabaseIJSRD
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBRavi Teja
 
ORCID Outreach Meeting dev breakout session
ORCID Outreach Meeting dev breakout sessionORCID Outreach Meeting dev breakout session
ORCID Outreach Meeting dev breakout sessionGudmundur Thorisson
 
Yieldbot Tech Talk, Sept 20, 2012
Yieldbot Tech Talk, Sept 20, 2012Yieldbot Tech Talk, Sept 20, 2012
Yieldbot Tech Talk, Sept 20, 2012yieldbot
 

Similar to Presentation mongodb public sector dbsig malaysia (20)

Mongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in BangaloreMongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in Bangalore
 
MongoDB
MongoDBMongoDB
MongoDB
 
Certified NoSQL MongoDB (CNA)
Certified NoSQL MongoDB (CNA)Certified NoSQL MongoDB (CNA)
Certified NoSQL MongoDB (CNA)
 
Kickstarting Your Mongo Education with MongoDB University
Kickstarting Your Mongo Education with MongoDB UniversityKickstarting Your Mongo Education with MongoDB University
Kickstarting Your Mongo Education with MongoDB University
 
Mongo db operations_v2
Mongo db operations_v2Mongo db operations_v2
Mongo db operations_v2
 
Mongo bbmw
Mongo bbmwMongo bbmw
Mongo bbmw
 
MongoDB Schema Design Tips & Tricks
MongoDB Schema Design Tips & TricksMongoDB Schema Design Tips & Tricks
MongoDB Schema Design Tips & Tricks
 
Mongo db dhruba
Mongo db dhrubaMongo db dhruba
Mongo db dhruba
 
MongoDB by Emroz sardar.
MongoDB by Emroz sardar.MongoDB by Emroz sardar.
MongoDB by Emroz sardar.
 
mongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputingmongodb-120401144140-phpapp01 claud camputing
mongodb-120401144140-phpapp01 claud camputing
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
Copy of MongoDB .pptx
Copy of MongoDB .pptxCopy of MongoDB .pptx
Copy of MongoDB .pptx
 
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
 
A Study on Mongodb Database.pdf
A Study on Mongodb Database.pdfA Study on Mongodb Database.pdf
A Study on Mongodb Database.pdf
 
A Study on Mongodb Database
A Study on Mongodb DatabaseA Study on Mongodb Database
A Study on Mongodb Database
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
ORCID Outreach Meeting dev breakout session
ORCID Outreach Meeting dev breakout sessionORCID Outreach Meeting dev breakout session
ORCID Outreach Meeting dev breakout session
 
MongoDB DOC v1.5
MongoDB DOC v1.5MongoDB DOC v1.5
MongoDB DOC v1.5
 
Yieldbot Tech Talk, Sept 20, 2012
Yieldbot Tech Talk, Sept 20, 2012Yieldbot Tech Talk, Sept 20, 2012
Yieldbot Tech Talk, Sept 20, 2012
 
MongoDB.pptx
MongoDB.pptxMongoDB.pptx
MongoDB.pptx
 

Recently uploaded

SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Presentation mongodb public sector dbsig malaysia

  • 1. Pengenalan MongoDB dan Penggunaanya Dalam Aplikasi PHP. Perjumpaan I : Kumpulan Minat Khusus Pangkalan Data Sektor Awam (DB SIG) Khamis 14 Jun 2012, Bilik Mesyuarat , Aras 6, MAMPU, MKN-Embassy Techzone, Jalan Teknokrat 2, 63000 , Cyberjaya Disampaikan Oleh : Syahman bin Mohamad (Wakil PESIMA) Sabtu, 16 Jun 2012
  • 3. MongoDB (dari kata “humongous”). “Scallable, high-performance, open source, schema-free, document- oriented database” mongodb.org Sabtu, 16 Jun 2012
  • 4. Cabang Pangkalan Data NoSQL. NoSQL ? ● Not Only SQL ● Berbeza dengan RDBMS ● Tidak perlu skema ● Tidak menggunakan SQL untuk kuiri ● Simpan data guna konsep dokumen Sabtu, 16 Jun 2012
  • 5. Pangkalan Data Menggunakan Konsep/Teknologi NoSQL sumber : nosql.findthebest.com Sabtu, 16 Jun 2012
  • 6. # Falsafah 1 “One size fits all” approach no longer applies ! Sabtu, 16 Jun 2012
  • 7. # Falsafah 2 Non-relational DBs scale more easily, especially horizontally Sabtu, 16 Jun 2012
  • 8. # Falsafah 3 Focus on speed, performance, flexibility and scalability (adapt to increased demands) Sabtu, 16 Jun 2012
  • 9. # Falsafah 4 Not concerned with transactional stuff and relational semantics Sabtu, 16 Jun 2012
  • 10. # Falsafah 5 DB should be an on-demand commodity, in a cloud like fashion Sabtu, 16 Jun 2012
  • 11. # Falsafah 6 MongoDB tries to achieve the performance of traditional key-value stores while maintaining functionality of traditional RDBMS Sabtu, 16 Jun 2012
  • 12. Ciri-Ciri Penting MongoDB ● Indexing ● Schema-less + very flexible ● Durability, solved with replication / failover support, or use journaling ● Document Storage ( Using BSON Format- JSON Like Object ) - eg : ({“nama” : “Razali Bin Alias”, “umur” : 30, “jawatan” : “PPTM”}) Sabtu, 16 Jun 2012
  • 13. Contoh : Format JSON Sabtu, 16 Jun 2012
  • 14. Kuiri Data ? Sabtu, 16 Jun 2012
  • 15. Kuiri Pangkalan Data MongoDB + berasaskan javascript Sql --> select * from pengguna; MongoDB noSql --> db.penguna.find() Sabtu, 16 Jun 2012
  • 17. # Konsep : Data Berorientasi Dokumen ● Dokumen-dokumen adalah objek/rekod pangkalan data ● Menggunakan format JSON (dalam bentuk binari) ● Boleh simpan pelbagai jenis maklumat bersama. Sabtu, 16 Jun 2012
  • 18. # Konsep : Contoh Dokumen MongoDB Sabtu, 16 Jun 2012
  • 19. # Pemetaan Konsep : RDBMS vs Mongo oracle,mysql mongoDB tables,views collections records, rows json documents, objects join embedded document queries return queries return a records (s) cursor index index Sabtu, 16 Jun 2012
  • 20. # Konsep : Kursor ● Queries returns 'cursor' instead of collections ● Allows to iterate through result set ● Performance – Big reason to use cursor ● Find() function returns a cursor object Sabtu, 16 Jun 2012
  • 21. Demo ? Aplikasi PHP : Pendaftaran Kehadiran Peserta DB-SIG Sabtu, 16 Jun 2012
  • 22. # Demo : Collection Design Dokumen 1 Dokumen 2 Dokumen 3 Dokumen ..n.. Sabtu, 16 Jun 2012 PESERTA
  • 23. # Demo : Application Goals (1) – peserta -daftar rekod peserta (2)- admin - papar rekod PESERTA peserta Sabtu, 16 Jun 2012
  • 24. # Demo : Document Structure peserta = { nama: 'SYAHMAN BIN MOHAMAD', gred : 'F32', jabatan : 'JABATAN PENDAFTARAN NEGARA,PUTRAJAYA', email : 'syahman@jpn.gov.my', peranan : [ 'PENTADBIR/PENGURUS PANGKALAN DATA', 'TEKNIKAL DAN OPERASI', 'PEMBANGUNAN SISTEM', 'PEMBANGUN PANGKALAN DATA'], ahli : 'PESIMA', alahan : 'MAKANAN LAUT' } Sabtu, 16 Jun 2012
  • 26. MongoDB Security Features ● Use trusted environment ● Firewall rules ● IP address binding / port binding ● Secure mode ( --auth @ --keyFiles ) Sabtu, 16 Jun 2012
  • 28. MongoDB Advanced Topic ● Map/Reduce ● Aggregation ● Sharding ● Replica Sets Sabtu, 16 Jun 2012
  • 29. Dokumentasi ? http://www.mongodb.org/display/DOCS/Home Sabtu, 16 Jun 2012