SlideShare a Scribd company logo
1 of 8
UI 
ConnectionManager 
DB 
I. The Program 
- Transmission Threads 
- Process files, transfer to DB 
- Notify ConnectionManager for 
status 
- Manage transmission threads 
- Control UI outputs 
- Distribute files to 
transmission threads 
- Notify UI if transmission is 
done 
- User interaction 
- Set hostname, port, DB Name, 
Input Folder 
- Trigger transmission process
Package Family 
Package 
Source Files 
II. The Schema 
Link to parentDocument InnerFiles[ ]
ParentDocument 
Package Package Family 
Source Files 
II. The Schema
III. Basic Transactions 
Communication Between MongoDB and the Program 
MongoDB Driver 
Program MongoDB
III. Basic Transactions 
db.sources.find([parameters]) 
The database. Set the 
DB to use by “use 
[dbname]” 
The collection. 
Function
III. Basic Transactions 
Create 
db.newDocs.save( 
{ 
‘Name’ : ‘myName’, 
‘Address’ : ‘myAddress’ 
} 
) 
db.newDocs.save( 
{ 
‘Name’ : ‘myName’, 
‘Address’ : ‘myAddress’ 
‘Info’ : { 
‘Info1’ : ‘value1’, 
‘Info2’ : ‘value2’ 
} 
} 
) 
Read 
db.newDocs.find( 
{ ‘Name’ : ‘myName’} 
) 
db.newDocs.findOne( 
{ ‘Name’ : ‘myName’ } 
) 
db.newDocs.findOne( 
{ ‘Name’ : ‘myName’ }, 
{ ‘Address’ : 0 } 
) 
db.newDocs.find()
III. Basic Transactions 
Update 
db.newDocs.update( 
{ ‘Name’ : ‘myName’ }, 
{ ‘Name’ : ‘myNewName’ } 
) 
Delete 
db.newDocs.update( 
{ ‘Name’ : ‘myName’ }, 
{ $set : 
{ ‘Hobby’ : ‘myHobby’ } 
} 
) 
db.newDocs.update( 
{ ‘Name’ : ‘myName’ }, 
{ $unset : 
{ ‘Hobby’ : ‘myHobby’ } 
} 
) 
db.newDocs.remove() 
db.newDocs.remove( 
{ ‘Name’ : ‘myName’ } 
) 
db.newDocs.remove( 
{ ‘Name’ : ‘myName’ }, 
true 
)
IV. Demo

More Related Content

What's hot

Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBAlex Bilbie
 
Persistencia de datos con Parse
Persistencia de datos con ParsePersistencia de datos con Parse
Persistencia de datos con ParseAlfonso Alba
 
Building a Location-based platform with MongoDB from Zero.
Building a Location-based platform with MongoDB from Zero.Building a Location-based platform with MongoDB from Zero.
Building a Location-based platform with MongoDB from Zero.Ravi Teja
 
Euruko 2009 - DataObjects
Euruko 2009 - DataObjectsEuruko 2009 - DataObjects
Euruko 2009 - DataObjectsDirkjan Bussink
 
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDBDev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDBMongoDB
 
TDD in the wild
TDD in the wildTDD in the wild
TDD in the wildBrainhub
 
Lab1-DB-Cassandra
Lab1-DB-CassandraLab1-DB-Cassandra
Lab1-DB-CassandraLilia Sfaxi
 
Redis data modeling examples
Redis data modeling examplesRedis data modeling examples
Redis data modeling examplesTerry Cho
 

What's hot (12)

Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Persistencia de datos con Parse
Persistencia de datos con ParsePersistencia de datos con Parse
Persistencia de datos con Parse
 
Building a Location-based platform with MongoDB from Zero.
Building a Location-based platform with MongoDB from Zero.Building a Location-based platform with MongoDB from Zero.
Building a Location-based platform with MongoDB from Zero.
 
Euruko 2009 - DataObjects
Euruko 2009 - DataObjectsEuruko 2009 - DataObjects
Euruko 2009 - DataObjects
 
PHP Data Objects
PHP Data ObjectsPHP Data Objects
PHP Data Objects
 
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDBDev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDB
 
TDD in the wild
TDD in the wildTDD in the wild
TDD in the wild
 
ActiveRecord
ActiveRecordActiveRecord
ActiveRecord
 
Lab1-DB-Cassandra
Lab1-DB-CassandraLab1-DB-Cassandra
Lab1-DB-Cassandra
 
Html web sql database
Html web sql databaseHtml web sql database
Html web sql database
 
Django at the Disco
Django at the DiscoDjango at the Disco
Django at the Disco
 
Redis data modeling examples
Redis data modeling examplesRedis data modeling examples
Redis data modeling examples
 

Similar to Mongo db

introtomongodb
introtomongodbintrotomongodb
introtomongodbsaikiran
 
웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)
웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)
웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)uEngine Solutions
 
How To Build and Run Node Apps with Docker and Compose
How To Build and Run Node Apps with Docker and ComposeHow To Build and Run Node Apps with Docker and Compose
How To Build and Run Node Apps with Docker and ComposeDocker, Inc.
 
Building Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisBuilding Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisFIWARE
 
Cloudbase.io MoSync Reload Course
Cloudbase.io MoSync Reload CourseCloudbase.io MoSync Reload Course
Cloudbase.io MoSync Reload Coursecloudbase.io
 
Hadoop Introduction
Hadoop IntroductionHadoop Introduction
Hadoop IntroductionSNEHAL MASNE
 
plProxy, pgBouncer, pgBalancer
plProxy, pgBouncer, pgBalancerplProxy, pgBouncer, pgBalancer
plProxy, pgBouncer, pgBalancerelliando dias
 
Bring your infrastructure under control with Infrastructor
Bring your infrastructure under control with InfrastructorBring your infrastructure under control with Infrastructor
Bring your infrastructure under control with InfrastructorStanislav Tiurikov
 
Xml dom & sax by bhavsingh maloth
Xml dom & sax by bhavsingh malothXml dom & sax by bhavsingh maloth
Xml dom & sax by bhavsingh malothBhavsingh Maloth
 
How to implement “multiple database(db) connection” in rails3
How to implement “multiple database(db) connection” in rails3How to implement “multiple database(db) connection” in rails3
How to implement “multiple database(db) connection” in rails3Andolasoft Inc
 
Questions On The Code And Core Module
Questions On The Code And Core ModuleQuestions On The Code And Core Module
Questions On The Code And Core ModuleKatie Gulley
 
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Cosimo Streppone
 
Polylog: A Log-Based Architecture for Distributed Systems
Polylog: A Log-Based Architecture for Distributed SystemsPolylog: A Log-Based Architecture for Distributed Systems
Polylog: A Log-Based Architecture for Distributed SystemsLongtail Video
 
ZendCon2010 Doctrine MongoDB ODM
ZendCon2010 Doctrine MongoDB ODMZendCon2010 Doctrine MongoDB ODM
ZendCon2010 Doctrine MongoDB ODMJonathan Wage
 

Similar to Mongo db (20)

introtomongodb
introtomongodbintrotomongodb
introtomongodb
 
웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)
웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)
웹기반 Ajax개발을 위한 프레임워크 - metaworks3 (메타웍스3)
 
How To Build and Run Node Apps with Docker and Compose
How To Build and Run Node Apps with Docker and ComposeHow To Build and Run Node Apps with Docker and Compose
How To Build and Run Node Apps with Docker and Compose
 
Metaworks3
Metaworks3Metaworks3
Metaworks3
 
Building Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisBuilding Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEis
 
Cloudbase.io MoSync Reload Course
Cloudbase.io MoSync Reload CourseCloudbase.io MoSync Reload Course
Cloudbase.io MoSync Reload Course
 
Mongo learning series
Mongo learning series Mongo learning series
Mongo learning series
 
DFSNov1.pptx
DFSNov1.pptxDFSNov1.pptx
DFSNov1.pptx
 
Hadoop Introduction
Hadoop IntroductionHadoop Introduction
Hadoop Introduction
 
plProxy, pgBouncer, pgBalancer
plProxy, pgBouncer, pgBalancerplProxy, pgBouncer, pgBalancer
plProxy, pgBouncer, pgBalancer
 
Bring your infrastructure under control with Infrastructor
Bring your infrastructure under control with InfrastructorBring your infrastructure under control with Infrastructor
Bring your infrastructure under control with Infrastructor
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDB
 
Xml dom & sax by bhavsingh maloth
Xml dom & sax by bhavsingh malothXml dom & sax by bhavsingh maloth
Xml dom & sax by bhavsingh maloth
 
How to implement “multiple database(db) connection” in rails3
How to implement “multiple database(db) connection” in rails3How to implement “multiple database(db) connection” in rails3
How to implement “multiple database(db) connection” in rails3
 
Questions On The Code And Core Module
Questions On The Code And Core ModuleQuestions On The Code And Core Module
Questions On The Code And Core Module
 
Mongodb workshop
Mongodb workshopMongodb workshop
Mongodb workshop
 
Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013Puppet at Opera Sofware - PuppetCamp Oslo 2013
Puppet at Opera Sofware - PuppetCamp Oslo 2013
 
JNDI
JNDIJNDI
JNDI
 
Polylog: A Log-Based Architecture for Distributed Systems
Polylog: A Log-Based Architecture for Distributed SystemsPolylog: A Log-Based Architecture for Distributed Systems
Polylog: A Log-Based Architecture for Distributed Systems
 
ZendCon2010 Doctrine MongoDB ODM
ZendCon2010 Doctrine MongoDB ODMZendCon2010 Doctrine MongoDB ODM
ZendCon2010 Doctrine MongoDB ODM
 

Mongo db

  • 1. UI ConnectionManager DB I. The Program - Transmission Threads - Process files, transfer to DB - Notify ConnectionManager for status - Manage transmission threads - Control UI outputs - Distribute files to transmission threads - Notify UI if transmission is done - User interaction - Set hostname, port, DB Name, Input Folder - Trigger transmission process
  • 2. Package Family Package Source Files II. The Schema Link to parentDocument InnerFiles[ ]
  • 3. ParentDocument Package Package Family Source Files II. The Schema
  • 4. III. Basic Transactions Communication Between MongoDB and the Program MongoDB Driver Program MongoDB
  • 5. III. Basic Transactions db.sources.find([parameters]) The database. Set the DB to use by “use [dbname]” The collection. Function
  • 6. III. Basic Transactions Create db.newDocs.save( { ‘Name’ : ‘myName’, ‘Address’ : ‘myAddress’ } ) db.newDocs.save( { ‘Name’ : ‘myName’, ‘Address’ : ‘myAddress’ ‘Info’ : { ‘Info1’ : ‘value1’, ‘Info2’ : ‘value2’ } } ) Read db.newDocs.find( { ‘Name’ : ‘myName’} ) db.newDocs.findOne( { ‘Name’ : ‘myName’ } ) db.newDocs.findOne( { ‘Name’ : ‘myName’ }, { ‘Address’ : 0 } ) db.newDocs.find()
  • 7. III. Basic Transactions Update db.newDocs.update( { ‘Name’ : ‘myName’ }, { ‘Name’ : ‘myNewName’ } ) Delete db.newDocs.update( { ‘Name’ : ‘myName’ }, { $set : { ‘Hobby’ : ‘myHobby’ } } ) db.newDocs.update( { ‘Name’ : ‘myName’ }, { $unset : { ‘Hobby’ : ‘myHobby’ } } ) db.newDocs.remove() db.newDocs.remove( { ‘Name’ : ‘myName’ } ) db.newDocs.remove( { ‘Name’ : ‘myName’ }, true )