Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

88
Upload files to MongoDB GridFS with Symfony2 Combine GridFS documents with ORM entities &

Transcript of Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Page 2: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Dennis Coorn

Page 3: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 4: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 5: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Provide healthcare institutions and hospitals with sustainable e-health solutions

Page 6: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Realization of change in culture&

Integration with existing worker processes

Page 7: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Integration of face-to-face and online treatment

A B C D E F

Text

Inten

sity »

Phases »

OnlineFace-to-face

AB

Psycho-educationDiagnostic screening

CD

Basic treatmentSpecialized treatment

EF

RehabilitationAftercare / support

Page 8: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Integration of face-to-face and online treatment

A B C D E F

Text

Inten

sity »

Phases »

OnlineFace-to-face

AB

Psycho-educationDiagnostic screening

CD

Basic treatmentSpecialized treatment

EF

RehabilitationAftercare / support

Page 9: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Integration of face-to-face and online treatment

A B C D E F

Text

Inten

sity »

Phases »

OnlineFace-to-face

AB

Psycho-educationDiagnostic screening

CD

Basic treatmentSpecialized treatment

EF

RehabilitationAftercare / support

Page 10: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

a couple of numbers2012

Page 11: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

logins40.000

Page 12: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

assignments scheduled for clients103.864

Page 13: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

minutes patients and practitioners were using our software1.000.000

Page 14: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Awesome software!

Page 15: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Right tools for the right job

Page 16: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Right tools for the right job

Page 17: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Right tools for the right job

Page 18: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Right tools for the right job

Page 19: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Right tools for the right job

Page 20: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 21: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 22: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 23: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 24: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Mailbox attachments

Page 25: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Safe

Mailbox attachments

Page 26: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

SafeSecure

Mailbox attachments

Page 27: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

SafeSecureEasily manageable

Mailbox attachments

Page 28: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Replication

Page 29: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Dri

ver

Master

Slave

Slave

Read

Write

Read

Read

Replica set

Page 30: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Dri

ver

Master

Slave

Slave

Read

Write

Read

Read

Replica set

Safe

Page 31: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Sharding

Page 32: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Dri

ver

Master

Slave

Slave

Read

Write

Read

ReadD

rive

r

Shar

d ro

uter

Read

Write

Master

Slave

Slave

Read

Write

Read

Read

1/2 replica set

1/2 replica set

Page 33: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Dri

ver

Master

Slave

Slave

Read

Write

Read

ReadD

rive

r

Shar

d ro

uter

Read

Write

Master

Slave

Slave

Read

Write

Read

Read

1/2 replica set

1/2 replica set

Secure

Page 34: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

GridFS

Page 35: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

files_id: x

files_id: x

files_id: x

Page 36: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

fs.files_id: xfilename: ...md5: ...

files_id: x

files_id: x

files_id: x

Page 37: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

fs.chunks

fs.files_id: xfilename: ...md5: ...

files_id: x

files_id: x

files_id: x

Page 38: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

fs.chunks

fs.files_id: xfilename: ...md5: ...

files_id: x

files_id: x

files_id: x

Easily manageable

Page 39: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

fs.chunks

fs.files_id: xfilename: ...md5: ...

files_id: x

files_id: x

files_id: x

Easily manageableStoring files in a database?!

Page 40: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 41: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 42: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 43: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 44: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 45: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

The basics

Page 46: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Document

Page 47: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 48: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 49: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Uploading

Page 50: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 51: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 52: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Downloading

Page 53: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 54: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 55: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

StreamedResponse

Page 56: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 57: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 58: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Combine with an Entity

Page 59: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Custom mapping Type

Page 60: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 61: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 62: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Configuration

Page 63: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 64: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 65: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Entity

Page 66: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 67: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 68: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 69: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 70: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 71: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 72: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 73: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

DataTransformer to the rescue!

Page 74: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 75: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 76: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 77: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Custom Form FieldType

Page 78: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 79: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 80: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Back to the controller (last time)

Page 81: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 82: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Page 83: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Recap

Page 87: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

Benchmarks

Page 88: Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities

gridfs symfony