I'm writing a little file manager app for a site I'm working on. We want the file manager to map directly onto S3.
While S3 responds pretty fast, performance wise we want to make as few requests to S3 as possible. For example, to process a directory, and give a file tree, we need to make at minimum two calls, one to get the directories subdirectories, and another get the directories subfile. That takes less than 0.3 seconds.
However, as far as I can tell, the API for the Storage features do not have a way to get file metadata (e.g., size, modified date) in bulk. Thus, if a directory has like 50 files, it makes two calls, one for files, one for direcgtories. But to get that metadata it has to make 100 more calls, one each for modified and size. That amazingly only takes 10 seconds on my dev machine but it's unacceptably slow.
Any ideas on how to approach this?