This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.
Fetching File metadata Architecture #28
Closed
Description
atm in order for laravel to fetch the files info, it will have to make a new request for every piece of info we need for each file.
for example, imagine you have 100 record in a db table & you want to fetch the content of those records,
- first we make a request to get all the records names
- then one by one we make a new requests to get each record data.
except in our case, it get data by column not by row, docs
so in-order for the manager to display the file info we need
getVisibility(),
lastModified(),
mimeType(),
url(),
size(),
so those 100 files are essentially 500 + 1
requests, not to mention getting the folders size.
this is a bad architecture and its related to laravel not the media-manager it self,
this also renders the manager almost inaccessible for remote disk storages like S3.
if anyone knows an idea/solution for this mess, am all ears.