3 ms·
Just a TLDR, don't. Store the database record with a pointer to a more scalable better suited datastore like an object storage system (i.e S3). Most framework
by siliconc0w 8y ago
Just a TLDR, don't. Store the database record with a pointer to a more scalable better suited datastore like an object storage system (i.e S3). Most frameworks have a pattern for this (i.e https://guides.rubyonrails.org/active_storage_overview.html https://guides.rubyonrails.org/active_storage_overview.html)
- kopos 8y agoOr if it's at the non webscale level just store it in your own filesystem and serve from your filesystem instead of doing it from S3.