Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Transcript of Upload Files to MongoDB GridFS with Symfony2 and Combine Them with ORM Entities
Upload files to MongoDB GridFS with Symfony2
Combine GridFS documents with ORM entities&
Dennis Coorn
Provide healthcare institutions and hospitals with sustainable e-health solutions
Realization of change in culture&
Integration with existing worker processes
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
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
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
a couple of numbers2012
logins40.000
assignments scheduled for clients103.864
minutes patients and practitioners were using our software1.000.000
Awesome software!
Right tools for the right job
Right tools for the right job
Right tools for the right job
Right tools for the right job
Right tools for the right job
Mailbox attachments
Safe
Mailbox attachments
SafeSecure
Mailbox attachments
SafeSecureEasily manageable
Mailbox attachments
Replication
Dri
ver
Master
Slave
Slave
Read
Write
Read
Read
Replica set
Dri
ver
Master
Slave
Slave
Read
Write
Read
Read
Replica set
Safe
Sharding
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
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
GridFS
files_id: x
files_id: x
files_id: x
fs.files_id: xfilename: ...md5: ...
files_id: x
files_id: x
files_id: x
fs.chunks
fs.files_id: xfilename: ...md5: ...
files_id: x
files_id: x
files_id: x
fs.chunks
fs.files_id: xfilename: ...md5: ...
files_id: x
files_id: x
files_id: x
Easily manageable
fs.chunks
fs.files_id: xfilename: ...md5: ...
files_id: x
files_id: x
files_id: x
Easily manageableStoring files in a database?!
The basics
Document
Uploading
Downloading
StreamedResponse
Combine with an Entity
Custom mapping Type
Configuration
Entity
DataTransformer to the rescue!
Custom Form FieldType
Back to the controller (last time)
Recap
Benchmarks
gridfs symfony