SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie 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
 
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
 

Ähnlich wie 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.
 
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
 
Database Workshop Slides
Database Workshop SlidesDatabase Workshop Slides
Database Workshop Slides
 

Kürzlich hochgeladen

Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 

Kürzlich hochgeladen (20)

Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 

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