DEV Community

Discussion on: How to build a paginated filesystem in Laravel

Collapse
 
phread1 profile image
Phread

Curious.. What if you were to store/update/delete the metadata in a database table and query the table to get the results you are wanting? Your add/update (even a delete if this is allowed) would be updating the table, instead of the metadata. This would also remove the need for a job that would cache the results.

Thoughts ?

Collapse
 
gjrdiesel profile image
Justin

Yes it's a great idea, thank you.

It's ultimately what I also went with. I still store metadata on S3 but I do that via an observer on the S3 model. Can interact with the model as normal and then it eventually pushes those changes to S3.